// Lean compiler output
// Module: Lean.Data.Lsp.Basic
// Imports: public import Lean.Data.Json public import Lean.Data.Lsp.BasicAux
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
lean_object* l_Lean_JsonNumber_fromNat(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0_spec__0(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_plaintext_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__8;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonChangeAnnotation;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__9;
lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation___closed__0;
lean_object* l_Lean_Json_getObj_x3f(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instInhabitedLocation;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_edit_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson(lean_object*);
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___closed__0;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___lam__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instToJsonResolveSupport___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instInhabitedLocation_default___closed__1;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__9;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__14;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__12;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__8;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9_spec__9_spec__9(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__6;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams(lean_object*, lean_object*);
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__16;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__15;
LEAN_EXPORT lean_object* l_Lean_Lsp_instHashableMarkupContent_hash___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__0;
static lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__5;
static lean_object* l_Lean_Lsp_instToJsonLocationLink_toJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentFilter;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToStringTextDocumentPositionParams;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonResolveSupport;
static lean_object* l_Lean_Lsp_instToJsonLocation_toJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0(lean_object*);
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__17;
lean_object* l_Lean_Json_mkObj(lean_object*);
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1;
static lean_object* l_Lean_Lsp_instInhabitedLocation_default___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__9;
LEAN_EXPORT lean_object* l_Lean_Lsp_instHashableMarkupContent;
LEAN_EXPORT lean_object* l_Lean_Lsp_instHashableMarkupKind;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentSelector;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__13;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__9;
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__6;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_toCtorIdx(uint8_t);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__6;
uint64_t lean_uint64_mix_hash(uint64_t, uint64_t);
LEAN_EXPORT lean_object* l_Lean_Lsp_instBEqLocation_beq___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__11;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__14;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___redArg___lam__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2_spec__2(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__3;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupContent;
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0;
static lean_object* l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__8;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___redArg___lam__0(lean_object*);
LEAN_EXPORT uint8_t l_Lean_Lsp_MarkupKind_ofNat(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__3;
LEAN_EXPORT uint64_t l_Lean_Lsp_instHashableMarkupKind_hash(uint8_t);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__9;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit___closed__0;
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__6;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams_toJson(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDeleteFile_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___boxed(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__11;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__7;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3_spec__3(size_t, size_t, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__13;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0_spec__0(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__9;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__0;
static lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams_toJson___redArg(lean_object*, lean_object*);
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCreateFile_toJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_rename_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextEdit(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonPartialResultParams_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__14;
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__6;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instInhabitedLocation_default___closed__2;
static lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit___closed__0;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__5(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams;
static lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__0;
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonRenameFile;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_plaintext_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0_spec__0(size_t, size_t, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__5;
LEAN_EXPORT lean_object* l_Lean_Lsp_instHashableMarkupKind_hash___boxed(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__8;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson(uint8_t);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupContent_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentItem_fromJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__8;
uint64_t lean_string_hash(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorElim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCreateFile_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLocation;
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__3;
LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___boxed(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_Lsp_instEmptyCollectionTextEditBatch;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocation___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson(lean_object*);
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___closed__0;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonLocationLink_toJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__2;
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonApplyWorkspaceEditParams;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_instBEqLocation;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLocation;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__1;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind___lam__0(uint8_t);
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__0;
lean_object* l_Lean_Json_getObjVal_x3f(lean_object*, lean_object*);
lean_object* l_Lean_Json_getBool_x3f(lean_object*);
lean_object* l_id___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__6;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__9;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier;
static lean_object* l_Lean_Lsp_instToJsonCreateFile___closed__0;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentSelector;
lean_object* l_List_foldl___at___00Array_appendList_spec__0___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextEditBatch;
static lean_object* l_Lean_Lsp_instToJsonLocation___closed__0;
lean_object* l_Lean_Json_getStr_x3f(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__6;
uint8_t l_Lean_Lsp_instBEqRange_beq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCommand;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
lean_object* l_Nat_reprFast(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_plaintext_elim___redArg(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__2;
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentChange;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__8;
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__19;
static lean_object* l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instToJsonTextDocumentItem___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__16;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__11;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextEdit;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__2;
uint8_t lean_string_dec_lt(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__5;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instOrdLocation_ord___boxed(lean_object*, lean_object*);
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__5;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonMarkupContent_fromJson_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__13;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCreateFile_toJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__3;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___boxed(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__0;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__10;
LEAN_EXPORT lean_object* l_Lean_Lsp_instDecidableEqMarkupContent_decEq___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
static lean_object* l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__9;
static lean_object* l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__15;
static lean_object* l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__4;
LEAN_EXPORT uint8_t l_Lean_Lsp_instDecidableEqMarkupKind(uint8_t, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__9;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__13;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_create_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorElim___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressParams;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__16;
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___redArg___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__0;
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0(lean_object*);
LEAN_EXPORT uint8_t l_Lean_Lsp_instDecidableEqMarkupContent_decEq(lean_object*, lean_object*);
lean_object* l_Lean_Json_setObjVal_x21(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__14;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCommand_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__9;
lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instEmptyCollection;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupContent_toJson___boxed(lean_object*);
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__16;
LEAN_EXPORT lean_object* l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instHashableMarkupKind___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend;
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonCommand___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__15;
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instToJsonCommand_toJson___closed__1;
static lean_object* l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__18;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1_spec__1(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_markdown_elim(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__6;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit;
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__0;
LEAN_EXPORT uint64_t l_Lean_Lsp_instHashableMarkupContent_hash(lean_object*);
static lean_object* l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0___closed__0;
static lean_object* l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonSnippetString;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams;
static lean_object* l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__4;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instToJsonTextEdit___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__15;
LEAN_EXPORT lean_object* l_Lean_Lsp_instCoeTextEditTextEditBatch;
static lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__4;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__11;
LEAN_EXPORT uint8_t l_Lean_Lsp_instOrdLocation_ord(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__9;
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0___closed__0;
static lean_object* l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_toCtorIdx___boxed(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__0;
lean_object* lean_array_to_list(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__8;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Lsp_instInhabitedLocation_default;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__11;
static lean_object* l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__10;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__11;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__17;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonRenameFile_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCreateFile;
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLocationLink;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__8;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__10;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instFromJsonSnippetString___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instAppendTextEditBatch;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_delete_elim(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonDeleteFile___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonResolveSupport;
static lean_object* l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__8;
LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__17;
static lean_object* l_Lean_Lsp_instToJsonPartialResultParams___closed__0;
static lean_object* l_Lean_Lsp_instToJsonTextEditBatch___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__13;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDeleteFile;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__9;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__5;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__0;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0_spec__0(size_t, size_t, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__3;
static lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__11;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile___closed__0;
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__0;
static lean_object* l_Lean_Lsp_instOrdLocation___closed__0;
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonChangeAnnotation_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__14;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__13;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instToJsonMarkupContent___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__9;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentItem_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonPartialResultParams;
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__3;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams___redArg(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__6;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorElim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6_spec__6(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__13;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion(lean_object*, uint8_t, uint8_t, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__3;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___lam__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_Lsp_instDecidableEqMarkupContent(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0_spec__0(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_markdown_elim___redArg___boxed(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__18;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextEdit_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__16;
static lean_object* l_Lean_Lsp_instToJsonCommand_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__0;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonLocationLink_toJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instAppendTextEditBatch___closed__0;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__0;
static lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentFilter;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile___closed__0;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__5;
LEAN_EXPORT lean_object* l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9_spec__9(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_toJson(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__5;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonPartialResultParams;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instToJsonRenameFile_toJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupContent;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__19;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__0;
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__2;
static lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instToJsonPartialResultParams_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLocationLink_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__9;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__1;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__11;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__15;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__9;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__17;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__11;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0_spec__0(size_t, size_t, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams___closed__0;
lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(lean_object*, uint8_t);
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextEdit;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instOrdLocation;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_delete_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentFilter_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonSnippetString;
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__5;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson(lean_object*);
lean_object* l_Array_fromJson_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson(lean_object*);
lean_object* l___private_Init_Data_List_Impl_0__List_flatMapTR_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__11;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter___closed__0;
static lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind;
static lean_object* l_Lean_Lsp_instFromJsonTextEditBatch___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDeleteFile;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__0;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Lsp_instToJsonPosition_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonMarkupContent_fromJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__12;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonSnippetString_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorIdx(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__3;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___redArg(uint8_t, uint8_t);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__3;
LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__9;
static lean_object* l_Lean_Lsp_instFromJsonDocumentSelector___closed__0;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_WorkspaceEdit_instEmptyCollection___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_markdown_elim___redArg(lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instToJsonDocumentSelector___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions;
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__16;
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonDeleteFile_toJson_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__3;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_markdown_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0(lean_object*);
LEAN_EXPORT uint8_t l_Lean_Lsp_instBEqLocation_beq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem___closed__0;
lean_object* l_Lean_Lsp_instFromJsonPosition_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__11;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions;
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__3;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0_spec__0(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instDecidableEqMarkupKind___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__15;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonCommand_toJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__0;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonResolveSupport_toJson(lean_object*);
static lean_object* l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentItem_toJson(lean_object*);
extern lean_object* l_Lean_Lsp_instInhabitedRange_default;
static lean_object* l_Lean_Lsp_instFromJsonCommand___closed__0;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonDeleteFile_toJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__1;
LEAN_EXPORT lean_object* l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__2(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__11;
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__15;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorIdx___boxed(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonRenameFile___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions;
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__15;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__7;
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_rename_elim___redArg(lean_object*, lean_object*);
lean_object* lean_nat_mul(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__4(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_plaintext_elim___redArg___boxed(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__6;
lean_object* l_Lean_Json_getNat_x3f(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__5;
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__1(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__16;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__20;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__10;
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonLocationLink_toJson_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__11;
static lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__10;
static lean_object* l_Lean_Lsp_instToJsonChangeAnnotation___closed__0;
lean_object* l_Lean_Lsp_instToJsonRange_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instToJsonDocumentFilter___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__4;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__3;
lean_object* l_Array_append___boxed(lean_object*, lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__18;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonRenameFile_toJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonDocumentChange___lam__0___closed__0;
static lean_object* l_Lean_Lsp_instToJsonLocationLink___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ofNat___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem;
static lean_object* l_Lean_Lsp_instToJsonSnippetString___closed__0;
static lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__13;
lean_object* lean_array_uget(lean_object*, size_t);
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__0;
size_t lean_array_size(lean_object*);
static lean_object* l_Lean_Lsp_instBEqLocation___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__8;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__1;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0(lean_object*);
uint8_t l_Lean_Lsp_instOrdRange_ord(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonTextEdit_toJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLocation_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0;
lean_object* l_Lean_Name_mkStr1(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__3;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__7;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorIdx(uint8_t);
LEAN_EXPORT lean_object* l_Lean_Lsp_instDecidableEqMarkupContent___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCommand;
static lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentItem;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson(lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLocationLink;
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instHashableMarkupContent___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonRenameFile;
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__4;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__14;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonTextEdit_toJson___closed__0;
LEAN_EXPORT lean_object* l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__2;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__2;
static lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__9;
uint8_t lean_usize_dec_lt(size_t, size_t);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3;
static lean_object* l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCreateFile;
static lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__14;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__1;
lean_object* lean_nat_add(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit_toJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__11;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__4;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__6;
LEAN_EXPORT lean_object* l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__2;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier;
lean_object* l_Lean_Json_pretty(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__13;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__1___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__15;
static lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__18;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_create_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__5;
lean_object* l_Std_DTreeMap_Internal_Impl_foldl___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind___lam__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange___lam__1(lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson___closed__14;
static lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__8;
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_edit_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorElim(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__7;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__5;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__12;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__5;
lean_object* l_Lean_Lsp_instFromJsonRange_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__5;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instToJsonLocationLink_toJson___closed__0;
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextEditBatch;
static lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit___closed__0;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__6;
static lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__1;
static lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__14;
static lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__7;
static lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__10;
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson(lean_object*);
static lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__8;
static lean_object* l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__1;
static lean_object* _init_l_Lean_Lsp_instInhabitedLocation_default___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instInhabitedLocation_default___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instInhabitedRange_default;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instInhabitedLocation_default___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instInhabitedLocation_default___closed__1;
x_2 = l_Lean_Lsp_instInhabitedLocation_default___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instInhabitedLocation_default() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instInhabitedLocation_default___closed__2;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instInhabitedLocation() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instInhabitedLocation_default;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_Lsp_instBEqLocation_beq(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_2, 0);
x_6 = lean_ctor_get(x_2, 1);
x_7 = lean_string_dec_eq(x_3, x_5);
if (x_7 == 0)
{
return x_7;
}
else
{
uint8_t x_8; 
x_8 = l_Lean_Lsp_instBEqRange_beq(x_4, x_6);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instBEqLocation_beq___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_Lsp_instBEqLocation_beq(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instBEqLocation___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instBEqLocation_beq___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instBEqLocation() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instBEqLocation___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_array_to_list(x_2);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = l_List_foldl___at___00Array_appendList_spec__0___redArg(x_2, x_4);
x_1 = x_5;
x_2 = x_6;
goto _start;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocation_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("uri", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocation_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("range", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocation_toJson___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLocation_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_6 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_6, 0, x_3);
lean_ctor_set(x_1, 1, x_6);
lean_ctor_set(x_1, 0, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_Lsp_instToJsonLocation_toJson___closed__1;
x_10 = l_Lean_Lsp_instToJsonRange_toJson(x_4);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_8);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_16 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_14, x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_18 = lean_ctor_get(x_1, 0);
x_19 = lean_ctor_get(x_1, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_1);
x_20 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_21 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_21, 0, x_18);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = lean_box(0);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_Lsp_instToJsonLocation_toJson___closed__1;
x_26 = l_Lean_Lsp_instToJsonRange_toJson(x_19);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_23);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_23);
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_24);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_32 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_30, x_31);
x_33 = l_Lean_Json_mkObj(x_32);
return x_33;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocation___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonLocation_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocation() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonLocation___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Json_getStr_x3f(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Lsp_instFromJsonRange_fromJson(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lsp", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Location", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__2;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__4() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__3;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__7;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(": ", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__9;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonLocation_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__13() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__12;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__13;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__14;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLocation_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__11;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__11;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonLocation_toJson___closed__1;
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__15;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__15;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_15);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_17, 0, x_31);
return x_17;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_17, 0);
lean_inc(x_32);
lean_dec(x_17);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_15);
lean_ctor_set(x_33, 1, x_32);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_33);
return x_34;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonLocation_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocation() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonLocation___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_Lsp_instOrdLocation_ord(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_2, 0);
x_6 = lean_ctor_get(x_2, 1);
x_7 = lean_string_dec_lt(x_3, x_5);
if (x_7 == 0)
{
uint8_t x_8; 
x_8 = lean_string_dec_eq(x_3, x_5);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = 2;
return x_9;
}
else
{
uint8_t x_10; 
x_10 = l_Lean_Lsp_instOrdRange_ord(x_4, x_6);
if (x_10 == 1)
{
return x_10;
}
else
{
return x_10;
}
}
}
else
{
uint8_t x_11; 
x_11 = 0;
return x_11;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instOrdLocation_ord___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_Lsp_instOrdLocation_ord(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instOrdLocation___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instOrdLocation_ord___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instOrdLocation() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instOrdLocation___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonLocationLink_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l_Lean_Lsp_instToJsonRange_toJson(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("originSelectionRange", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("targetUri", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink_toJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("targetRange", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink_toJson___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("targetSelectionRange", 20, 20);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonLocationLink_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 3);
lean_inc_ref(x_5);
lean_dec_ref(x_1);
x_6 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__0;
x_7 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonLocationLink_toJson_spec__0(x_6, x_2);
x_8 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__1;
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_3);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__2;
x_14 = l_Lean_Lsp_instToJsonRange_toJson(x_4);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_11);
x_17 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__3;
x_18 = l_Lean_Lsp_instToJsonRange_toJson(x_5);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_11);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_11);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_16);
lean_ctor_set(x_22, 1, x_21);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_12);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_7);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_26 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_24, x_25);
x_27 = l_Lean_Json_mkObj(x_26);
return x_27;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonLocationLink_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonLocationLink() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonLocationLink___closed__0;
return x_1;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_instFromJsonRange_fromJson(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("LocationLink", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("originSelectionRange\?", 21, 21);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__10() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__9;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__11;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__2;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__14() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__13;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__14;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__15;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__3;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__18() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__17;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__18;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__19;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonLocationLink_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__1;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__12;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__12;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__2;
lean_inc(x_1);
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__16;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__16;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_31, 0);
lean_inc(x_43);
lean_dec_ref(x_31);
x_44 = l_Lean_Lsp_instToJsonLocationLink_toJson___closed__3;
x_45 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1(x_1, x_44);
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_46; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_46 = !lean_is_exclusive(x_45);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_45, 0);
x_48 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__20;
x_49 = lean_string_append(x_48, x_47);
lean_dec(x_47);
lean_ctor_set(x_45, 0, x_49);
return x_45;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_50 = lean_ctor_get(x_45, 0);
lean_inc(x_50);
lean_dec(x_45);
x_51 = l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__20;
x_52 = lean_string_append(x_51, x_50);
lean_dec(x_50);
x_53 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_53, 0, x_52);
return x_53;
}
}
else
{
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_54; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_54 = !lean_is_exclusive(x_45);
if (x_54 == 0)
{
lean_ctor_set_tag(x_45, 0);
return x_45;
}
else
{
lean_object* x_55; lean_object* x_56; 
x_55 = lean_ctor_get(x_45, 0);
lean_inc(x_55);
lean_dec(x_45);
x_56 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_56, 0, x_55);
return x_56;
}
}
else
{
uint8_t x_57; 
x_57 = !lean_is_exclusive(x_45);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; 
x_58 = lean_ctor_get(x_45, 0);
x_59 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_59, 0, x_15);
lean_ctor_set(x_59, 1, x_29);
lean_ctor_set(x_59, 2, x_43);
lean_ctor_set(x_59, 3, x_58);
lean_ctor_set(x_45, 0, x_59);
return x_45;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_60 = lean_ctor_get(x_45, 0);
lean_inc(x_60);
lean_dec(x_45);
x_61 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_61, 0, x_15);
lean_ctor_set(x_61, 1, x_29);
lean_ctor_set(x_61, 2, x_43);
lean_ctor_set(x_61, 3, x_60);
x_62 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_62, 0, x_61);
return x_62;
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonLocationLink_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonLocationLink() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonLocationLink___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
x_8 = 1;
x_9 = lean_usize_add(x_2, x_8);
x_10 = lean_array_uset(x_7, x_2, x_5);
x_2 = x_9;
x_3 = x_10;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_array_size(x_1);
x_3 = 0;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0_spec__0(x_2, x_3, x_1);
x_5 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonCommand_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("title", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonCommand_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonCommand_toJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("arguments", 9, 9);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCommand_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = l_Lean_Lsp_instToJsonCommand_toJson___closed__0;
x_6 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_6, 0, x_2);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
x_8 = lean_box(0);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_7);
lean_ctor_set(x_9, 1, x_8);
x_10 = l_Lean_Lsp_instToJsonCommand_toJson___closed__1;
x_11 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_11, 0, x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_8);
x_14 = l_Lean_Lsp_instToJsonCommand_toJson___closed__2;
x_15 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0(x_14, x_4);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_8);
x_17 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_17, 0, x_13);
lean_ctor_set(x_17, 1, x_16);
x_18 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_18, 0, x_9);
lean_ctor_set(x_18, 1, x_17);
x_19 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_20 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_18, x_19);
x_21 = l_Lean_Json_mkObj(x_20);
return x_21;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonCommand_toJson_spec__0_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonCommand___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonCommand_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonCommand() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonCommand___closed__0;
return x_1;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_3, x_2);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_3, x_2, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_2, x_9);
x_11 = lean_array_uset(x_8, x_2, x_6);
x_2 = x_10;
x_3 = x_11;
goto _start;
}
}
}
static lean_object* _init_l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expected JSON array, got '", 26, 26);
return x_1;
}
}
static lean_object* _init_l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("'", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 4)
{
lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_array_size(x_2);
x_4 = 0;
x_5 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0_spec__0(x_3, x_4, x_2);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_6 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0;
x_7 = lean_unsigned_to_nat(80u);
x_8 = l_Lean_Json_pretty(x_1, x_7);
x_9 = lean_string_append(x_6, x_8);
lean_dec_ref(x_8);
x_10 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1;
x_11 = lean_string_append(x_9, x_10);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonCommand_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__4;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonCommand_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__9() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__8;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__9;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__10;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("arguments\?", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__12;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__14() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__13;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__14;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__15;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCommand_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonCommand_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__7;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__7;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonCommand_toJson___closed__1;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__11;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__11;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonCommand_toJson___closed__2;
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__16;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonCommand_fromJson___closed__16;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
uint8_t x_43; 
x_43 = !lean_is_exclusive(x_31);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; 
x_44 = lean_ctor_get(x_31, 0);
x_45 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_45, 0, x_15);
lean_ctor_set(x_45, 1, x_29);
lean_ctor_set(x_45, 2, x_44);
lean_ctor_set(x_31, 0, x_45);
return x_31;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_31, 0);
lean_inc(x_46);
lean_dec(x_31);
x_47 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_47, 0, x_15);
lean_ctor_set(x_47, 1, x_29);
lean_ctor_set(x_47, 2, x_46);
x_48 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_48, 0, x_47);
return x_48;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonCommand_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCommand() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonCommand___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("value", 5, 5);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonSnippetString_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0;
x_3 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_3, 0, x_1);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_2);
lean_ctor_set(x_4, 1, x_3);
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
x_8 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_9 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_7, x_8);
x_10 = l_Lean_Json_mkObj(x_9);
return x_10;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonSnippetString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonSnippetString_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonSnippetString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonSnippetString___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("SnippetString", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__4;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonSnippetString_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0;
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__7;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__7;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonSnippetString_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonSnippetString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonSnippetString___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l_Lean_Lsp_instToJsonSnippetString_toJson(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_2);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
lean_ctor_set_tag(x_2, 3);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
x_6 = lean_box(0);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_8 = lean_ctor_get(x_2, 0);
lean_inc(x_8);
lean_dec(x_2);
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_8);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
return x_12;
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("newText", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanExtSnippet", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("annotationId", 12, 12);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextEdit_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 3);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = l_Lean_Lsp_instToJsonLocation_toJson___closed__1;
x_7 = l_Lean_Lsp_instToJsonRange_toJson(x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_box(0);
x_10 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__0;
x_12 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_12, 0, x_3);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_9);
x_15 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__1;
x_16 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__0(x_15, x_4);
x_17 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
x_18 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_17, x_5);
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_9);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_16);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_14);
lean_ctor_set(x_21, 1, x_20);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_10);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_24 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_22, x_23);
x_25 = l_Lean_Json_mkObj(x_24);
return x_25;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonTextEdit_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextEdit() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonTextEdit___closed__0;
return x_1;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_instFromJsonSnippetString_fromJson(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2_spec__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_Json_getStr_x3f(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2_spec__2(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TextEdit", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__13;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__7() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__6;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__7;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__8;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leanExtSnippet\?", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__10;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__12() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__11;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__12;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__13;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("annotationId\?", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__15;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__16;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__18;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextEdit_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonLocation_toJson___closed__1;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__1(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__5;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__5;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__0;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__9;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__9;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__1;
lean_inc(x_1);
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__14;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__14;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_31, 0);
lean_inc(x_43);
lean_dec_ref(x_31);
x_44 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
x_45 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_44);
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_46; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_46 = !lean_is_exclusive(x_45);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_45, 0);
x_48 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__19;
x_49 = lean_string_append(x_48, x_47);
lean_dec(x_47);
lean_ctor_set(x_45, 0, x_49);
return x_45;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_50 = lean_ctor_get(x_45, 0);
lean_inc(x_50);
lean_dec(x_45);
x_51 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__19;
x_52 = lean_string_append(x_51, x_50);
lean_dec(x_50);
x_53 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_53, 0, x_52);
return x_53;
}
}
else
{
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_54; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_54 = !lean_is_exclusive(x_45);
if (x_54 == 0)
{
lean_ctor_set_tag(x_45, 0);
return x_45;
}
else
{
lean_object* x_55; lean_object* x_56; 
x_55 = lean_ctor_get(x_45, 0);
lean_inc(x_55);
lean_dec(x_45);
x_56 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_56, 0, x_55);
return x_56;
}
}
else
{
uint8_t x_57; 
x_57 = !lean_is_exclusive(x_45);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; 
x_58 = lean_ctor_get(x_45, 0);
x_59 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_59, 0, x_15);
lean_ctor_set(x_59, 1, x_29);
lean_ctor_set(x_59, 2, x_43);
lean_ctor_set(x_59, 3, x_58);
lean_ctor_set(x_45, 0, x_59);
return x_45;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_60 = lean_ctor_get(x_45, 0);
lean_inc(x_60);
lean_dec(x_45);
x_61 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_61, 0, x_15);
lean_ctor_set(x_61, 1, x_29);
lean_ctor_set(x_61, 2, x_43);
lean_ctor_set(x_61, 3, x_60);
x_62 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_62, 0, x_61);
return x_62;
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonTextEdit_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEdit() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEditBatch___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit___closed__0;
x_2 = lean_alloc_closure((void*)(l_Array_fromJson_x3f), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextEditBatch() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonTextEditBatch___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextEditBatch___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonTextEdit___closed__0;
x_2 = lean_alloc_closure((void*)(l_Array_toJson), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextEditBatch() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonTextEditBatch___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instEmptyCollectionTextEditBatch() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instAppendTextEditBatch___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Array_append___boxed), 3, 1);
lean_closure_set(x_1, 0, lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instAppendTextEditBatch() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instAppendTextEditBatch___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0___closed__0;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instCoeTextEditTextEditBatch() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentIdentifier_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_3 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_3, 0, x_1);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_2);
lean_ctor_set(x_4, 1, x_3);
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
x_8 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_9 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_7, x_8);
x_10 = l_Lean_Json_mkObj(x_9);
return x_10;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonTextDocumentIdentifier_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TextDocumentIdentifier", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__5;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__5;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_2);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_ctor_get(x_2, 0);
x_6 = l_Lean_JsonNumber_fromNat(x_5);
lean_ctor_set_tag(x_2, 2);
lean_ctor_set(x_2, 0, x_6);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_1);
lean_ctor_set(x_7, 1, x_2);
x_8 = lean_box(0);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_7);
lean_ctor_set(x_9, 1, x_8);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_10 = lean_ctor_get(x_2, 0);
lean_inc(x_10);
lean_dec(x_2);
x_11 = l_Lean_JsonNumber_fromNat(x_10);
x_12 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_1);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_box(0);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
return x_15;
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("version", 7, 7);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_6 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_6, 0, x_3);
lean_ctor_set(x_1, 1, x_6);
lean_ctor_set(x_1, 0, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0;
x_10 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson_spec__0(x_9, x_4);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_7);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_8);
lean_ctor_set(x_12, 1, x_11);
x_13 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_14 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_12, x_13);
x_15 = l_Lean_Json_mkObj(x_14);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_16 = lean_ctor_get(x_1, 0);
x_17 = lean_ctor_get(x_1, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_1);
x_18 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_19 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_19, 0, x_16);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_box(0);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0;
x_24 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson_spec__0(x_23, x_17);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_21);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_22);
lean_ctor_set(x_26, 1, x_25);
x_27 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_28 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_26, x_27);
x_29 = l_Lean_Json_mkObj(x_28);
return x_29;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__0;
return x_1;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_Json_getNat_x3f(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("VersionedTextDocumentIdentifier", 31, 31);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8;
x_2 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("version\?", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__6;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__8() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__7;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__8;
x_2 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__9;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__5;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__5;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0;
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__10;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__10;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_15);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_17, 0, x_31);
return x_17;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_17, 0);
lean_inc(x_32);
lean_dec(x_17);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_15);
lean_ctor_set(x_33, 1, x_32);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_33);
return x_34;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
x_8 = l_Lean_Lsp_instToJsonTextEdit_toJson(x_5);
x_9 = 1;
x_10 = lean_usize_add(x_2, x_9);
x_11 = lean_array_uset(x_7, x_2, x_8);
x_2 = x_10;
x_3 = x_11;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0(lean_object* x_1) {
_start:
{
size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_array_size(x_1);
x_3 = 0;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0_spec__0(x_2, x_3, x_1);
x_5 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("textDocument", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("edits", 5, 5);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentEdit_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0;
x_6 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson(x_3);
lean_ctor_set(x_1, 1, x_6);
lean_ctor_set(x_1, 0, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1;
x_10 = l_Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0(x_4);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_8);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_16 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_14, x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_18 = lean_ctor_get(x_1, 0);
x_19 = lean_ctor_get(x_1, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_1);
x_20 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0;
x_21 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson(x_18);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = lean_box(0);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1;
x_26 = l_Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0(x_19);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_23);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_23);
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_24);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_32 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_30, x_31);
x_33 = l_Lean_Json_mkObj(x_32);
return x_33;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentEdit___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonTextDocumentEdit_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentEdit() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentEdit___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1_spec__1(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_array_uget(x_3, x_2);
x_7 = l_Lean_Lsp_instFromJsonTextEdit_fromJson(x_6);
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
lean_dec_ref(x_3);
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
return x_7;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
x_11 = lean_ctor_get(x_7, 0);
lean_inc(x_11);
lean_dec_ref(x_7);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_array_uset(x_3, x_2, x_12);
x_14 = 1;
x_15 = lean_usize_add(x_2, x_14);
x_16 = lean_array_uset(x_13, x_2, x_11);
x_2 = x_15;
x_3 = x_16;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 4)
{
lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_array_size(x_2);
x_4 = 0;
x_5 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1_spec__1(x_3, x_4, x_2);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_6 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0;
x_7 = lean_unsigned_to_nat(80u);
x_8 = l_Lean_Json_pretty(x_1, x_7);
x_9 = lean_string_append(x_6, x_8);
lean_dec_ref(x_8);
x_10 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1;
x_11 = lean_string_append(x_9, x_10);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TextDocumentEdit", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__4;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__9() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__8;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__9;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__10;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__7;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__7;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1;
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__11;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__11;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_15);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_17, 0, x_31);
return x_17;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_17, 0);
lean_inc(x_32);
lean_dec(x_17);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_15);
lean_ctor_set(x_33, 1, x_32);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_33);
return x_34;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1_spec__1(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentEdit() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("label", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("needsConfirmation", 17, 17);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("description", 11, 11);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonChangeAnnotation_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*2);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0;
x_6 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_6, 0, x_2);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
x_8 = lean_box(0);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_7);
lean_ctor_set(x_9, 1, x_8);
x_10 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__1;
x_11 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_11, 0, x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_8);
x_14 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__2;
x_15 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_14, x_4);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_8);
x_17 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_17, 0, x_13);
lean_ctor_set(x_17, 1, x_16);
x_18 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_18, 0, x_9);
lean_ctor_set(x_18, 1, x_17);
x_19 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_20 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_18, x_19);
x_21 = l_Lean_Json_mkObj(x_20);
return x_21;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonChangeAnnotation___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonChangeAnnotation_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonChangeAnnotation() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonChangeAnnotation___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Json_getBool_x3f(x_3);
lean_dec(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ChangeAnnotation", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__4;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__9() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__8;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__9;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__10;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("description\?", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__12;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__14() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__13;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__14;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__15;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__7;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__7;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__1;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__11;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__11;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__2;
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__16;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__16;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
uint8_t x_43; 
x_43 = !lean_is_exclusive(x_31);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; uint8_t x_46; 
x_44 = lean_ctor_get(x_31, 0);
x_45 = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(x_45, 0, x_15);
lean_ctor_set(x_45, 1, x_44);
x_46 = lean_unbox(x_29);
lean_dec(x_29);
lean_ctor_set_uint8(x_45, sizeof(void*)*2, x_46);
lean_ctor_set(x_31, 0, x_45);
return x_31;
}
else
{
lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; 
x_47 = lean_ctor_get(x_31, 0);
lean_inc(x_47);
lean_dec(x_31);
x_48 = lean_alloc_ctor(0, 2, 1);
lean_ctor_set(x_48, 0, x_15);
lean_ctor_set(x_48, 1, x_47);
x_49 = lean_unbox(x_29);
lean_dec(x_29);
lean_ctor_set_uint8(x_48, sizeof(void*)*2, x_49);
x_50 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_50, 0, x_48);
return x_50;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonChangeAnnotation() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonChangeAnnotation___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("overwrite", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ignoreIfExists", 14, 14);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_2 = lean_ctor_get_uint8(x_1, 0);
x_3 = lean_ctor_get_uint8(x_1, 1);
x_4 = l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__0;
x_5 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_5, 0, x_2);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__1;
x_10 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_10, 0, x_3);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_8);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_16 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_14, x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_CreateFile_instToJsonOptions_toJson(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instToJsonOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instToJsonOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_CreateFile_instToJsonOptions___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("CreateFile", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Options", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__1;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__0;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_4 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__3() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__2;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__6;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__10() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__9;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__10;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__11;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__1;
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__12;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__12;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_alloc_ctor(0, 0, 2);
x_32 = lean_unbox(x_15);
lean_dec(x_15);
lean_ctor_set_uint8(x_31, 0, x_32);
x_33 = lean_unbox(x_30);
lean_dec(x_30);
lean_ctor_set_uint8(x_31, 1, x_33);
lean_ctor_set(x_17, 0, x_31);
return x_17;
}
else
{
lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; 
x_34 = lean_ctor_get(x_17, 0);
lean_inc(x_34);
lean_dec(x_17);
x_35 = lean_alloc_ctor(0, 0, 2);
x_36 = lean_unbox(x_15);
lean_dec(x_15);
lean_ctor_set_uint8(x_35, 0, x_36);
x_37 = lean_unbox(x_34);
lean_dec(x_34);
lean_ctor_set_uint8(x_35, 1, x_37);
x_38 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_38, 0, x_35);
return x_38;
}
}
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_CreateFile_instFromJsonOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("recursive", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ignoreIfNotExists", 17, 17);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_2 = lean_ctor_get_uint8(x_1, 0);
x_3 = lean_ctor_get_uint8(x_1, 1);
x_4 = l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__0;
x_5 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_5, 0, x_2);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__1;
x_10 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_10, 0, x_3);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_8);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_16 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_14, x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instToJsonOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("DeleteFile", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__1;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__0;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_4 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__4;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__5;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__9() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__8;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__9;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__10;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__7;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__7;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__1;
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__11;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__11;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_alloc_ctor(0, 0, 2);
x_32 = lean_unbox(x_15);
lean_dec(x_15);
lean_ctor_set_uint8(x_31, 0, x_32);
x_33 = lean_unbox(x_30);
lean_dec(x_30);
lean_ctor_set_uint8(x_31, 1, x_33);
lean_ctor_set(x_17, 0, x_31);
return x_17;
}
else
{
lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; 
x_34 = lean_ctor_get(x_17, 0);
lean_inc(x_34);
lean_dec(x_17);
x_35 = lean_alloc_ctor(0, 0, 2);
x_36 = lean_unbox(x_15);
lean_dec(x_15);
lean_ctor_set_uint8(x_35, 0, x_36);
x_37 = lean_unbox(x_34);
lean_dec(x_34);
lean_ctor_set_uint8(x_35, 1, x_37);
x_38 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_38, 0, x_35);
return x_38;
}
}
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCreateFile_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = l_Lean_Lsp_CreateFile_instToJsonOptions_toJson(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("options", 7, 7);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonCreateFile_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_6 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_6, 0, x_2);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
x_8 = lean_box(0);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_7);
lean_ctor_set(x_9, 1, x_8);
x_10 = l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0;
x_11 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCreateFile_toJson_spec__0(x_10, x_3);
lean_dec(x_3);
x_12 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
x_13 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_12, x_4);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_8);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_11);
lean_ctor_set(x_15, 1, x_14);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_9);
lean_ctor_set(x_16, 1, x_15);
x_17 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_18 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_16, x_17);
x_19 = l_Lean_Json_mkObj(x_18);
return x_19;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCreateFile_toJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCreateFile_toJson_spec__0(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonCreateFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonCreateFile_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonCreateFile() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonCreateFile___closed__0;
return x_1;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__1() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__0;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__1;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("options\?", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__5;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__7() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__6;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__7;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__8;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__10;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonCreateFile_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__4;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__4;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__9;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__9;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__11;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__11;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
uint8_t x_43; 
x_43 = !lean_is_exclusive(x_31);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; 
x_44 = lean_ctor_get(x_31, 0);
x_45 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_45, 0, x_15);
lean_ctor_set(x_45, 1, x_29);
lean_ctor_set(x_45, 2, x_44);
lean_ctor_set(x_31, 0, x_45);
return x_31;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_31, 0);
lean_inc(x_46);
lean_dec(x_31);
x_47 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_47, 0, x_15);
lean_ctor_set(x_47, 1, x_29);
lean_ctor_set(x_47, 2, x_46);
x_48 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_48, 0, x_47);
return x_48;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonCreateFile_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonCreateFile() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonCreateFile___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonRenameFile_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("oldUri", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonRenameFile_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("newUri", 6, 6);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonRenameFile_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 3);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = l_Lean_Lsp_instToJsonRenameFile_toJson___closed__0;
x_7 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_7, 0, x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_box(0);
x_10 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_Lsp_instToJsonRenameFile_toJson___closed__1;
x_12 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_12, 0, x_3);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_9);
x_15 = l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0;
x_16 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonCreateFile_toJson_spec__0(x_15, x_4);
lean_dec(x_4);
x_17 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
x_18 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_17, x_5);
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_9);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_16);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_14);
lean_ctor_set(x_21, 1, x_20);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_10);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_24 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_22, x_23);
x_25 = l_Lean_Json_mkObj(x_24);
return x_25;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonRenameFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonRenameFile_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonRenameFile() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonRenameFile___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("RenameFile", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonRenameFile_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__4;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonRenameFile_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__9() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__8;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__9;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__10;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__7;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__12;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__14;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonRenameFile_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonRenameFile_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__7;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__7;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonRenameFile_toJson___closed__1;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__11;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__11;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0;
lean_inc(x_1);
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__13;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__13;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_31, 0);
lean_inc(x_43);
lean_dec_ref(x_31);
x_44 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
x_45 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_44);
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_46; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_46 = !lean_is_exclusive(x_45);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_45, 0);
x_48 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__15;
x_49 = lean_string_append(x_48, x_47);
lean_dec(x_47);
lean_ctor_set(x_45, 0, x_49);
return x_45;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_50 = lean_ctor_get(x_45, 0);
lean_inc(x_50);
lean_dec(x_45);
x_51 = l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__15;
x_52 = lean_string_append(x_51, x_50);
lean_dec(x_50);
x_53 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_53, 0, x_52);
return x_53;
}
}
else
{
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_54; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_54 = !lean_is_exclusive(x_45);
if (x_54 == 0)
{
lean_ctor_set_tag(x_45, 0);
return x_45;
}
else
{
lean_object* x_55; lean_object* x_56; 
x_55 = lean_ctor_get(x_45, 0);
lean_inc(x_55);
lean_dec(x_45);
x_56 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_56, 0, x_55);
return x_56;
}
}
else
{
uint8_t x_57; 
x_57 = !lean_is_exclusive(x_45);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; 
x_58 = lean_ctor_get(x_45, 0);
x_59 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_59, 0, x_15);
lean_ctor_set(x_59, 1, x_29);
lean_ctor_set(x_59, 2, x_43);
lean_ctor_set(x_59, 3, x_58);
lean_ctor_set(x_45, 0, x_59);
return x_45;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_60 = lean_ctor_get(x_45, 0);
lean_inc(x_60);
lean_dec(x_45);
x_61 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_61, 0, x_15);
lean_ctor_set(x_61, 1, x_29);
lean_ctor_set(x_61, 2, x_43);
lean_ctor_set(x_61, 3, x_60);
x_62 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_62, 0, x_61);
return x_62;
}
}
}
}
}
}
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonRenameFile_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonRenameFile() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonRenameFile___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonDeleteFile_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDeleteFile_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_6 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_6, 0, x_2);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
x_8 = lean_box(0);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_7);
lean_ctor_set(x_9, 1, x_8);
x_10 = l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0;
x_11 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonDeleteFile_toJson_spec__0(x_10, x_3);
lean_dec(x_3);
x_12 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
x_13 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_12, x_4);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_8);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_11);
lean_ctor_set(x_15, 1, x_14);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_9);
lean_ctor_set(x_16, 1, x_15);
x_17 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_18 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_16, x_17);
x_19 = l_Lean_Json_mkObj(x_18);
return x_19;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonDeleteFile_toJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonDeleteFile_toJson_spec__0(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDeleteFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonDeleteFile_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDeleteFile() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonDeleteFile___closed__0;
return x_1;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__1() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__0;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__1;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8;
x_2 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__7;
x_2 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17;
x_2 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDeleteFile_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__4;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__4;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__6;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__6;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2;
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__8;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__8;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
uint8_t x_43; 
x_43 = !lean_is_exclusive(x_31);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; 
x_44 = lean_ctor_get(x_31, 0);
x_45 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_45, 0, x_15);
lean_ctor_set(x_45, 1, x_29);
lean_ctor_set(x_45, 2, x_44);
lean_ctor_set(x_31, 0, x_45);
return x_31;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_31, 0);
lean_inc(x_46);
lean_dec(x_31);
x_47 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_47, 0, x_15);
lean_ctor_set(x_47, 1, x_29);
lean_ctor_set(x_47, 2, x_46);
x_48 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_48, 0, x_47);
return x_48;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonDeleteFile_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDeleteFile() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonDeleteFile___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorIdx(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
case 2:
{
lean_object* x_4; 
x_4 = lean_unsigned_to_nat(2u);
return x_4;
}
default: 
{
lean_object* x_5; 
x_5 = lean_unsigned_to_nat(3u);
return x_5;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorIdx___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_DocumentChange_ctorIdx(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorElim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_3);
lean_dec_ref(x_1);
x_4 = lean_apply_1(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Lsp_DocumentChange_ctorElim(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_create_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_create_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_rename_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_rename_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_delete_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_delete_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_edit_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_DocumentChange_edit_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_DocumentChange_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("kind", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("create", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__1;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("rename", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("delete", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__5;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentChange___lam__0(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = l_Lean_Lsp_instToJsonCreateFile_toJson(x_2);
x_4 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_5 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__2;
x_6 = l_Lean_Json_setObjVal_x21(x_3, x_4, x_5);
return x_6;
}
case 1:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_7);
lean_dec_ref(x_1);
x_8 = l_Lean_Lsp_instToJsonRenameFile_toJson(x_7);
x_9 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_10 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__4;
x_11 = l_Lean_Json_setObjVal_x21(x_8, x_9, x_10);
return x_11;
}
case 2:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_12 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_12);
lean_dec_ref(x_1);
x_13 = l_Lean_Lsp_instToJsonDeleteFile_toJson(x_12);
x_14 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_15 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__6;
x_16 = l_Lean_Json_setObjVal_x21(x_13, x_14, x_15);
return x_16;
}
default: 
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_17);
lean_dec_ref(x_1);
x_18 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson(x_17);
return x_18;
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentChange() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonDocumentChange___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentChange___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Unrecognized kind: ", 19, 19);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lean_Lsp_instFromJsonDocumentChange___lam__0___closed__0;
x_3 = lean_unsigned_to_nat(80u);
x_4 = l_Lean_Json_pretty(x_1, x_3);
x_5 = lean_string_append(x_2, x_4);
lean_dec_ref(x_4);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentChange___lam__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_14; lean_object* x_16; lean_object* x_17; 
x_16 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
lean_inc(x_2);
x_17 = l_Lean_Json_getObjVal_x3f(x_2, x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_dec_ref(x_17);
lean_dec_ref(x_1);
goto block_13;
}
else
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
lean_dec_ref(x_17);
if (lean_obj_tag(x_18) == 3)
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_ctor_get(x_18, 0);
x_20 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__1;
x_21 = lean_string_dec_eq(x_19, x_20);
if (x_21 == 0)
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__3;
x_23 = lean_string_dec_eq(x_19, x_22);
if (x_23 == 0)
{
lean_object* x_24; uint8_t x_25; 
x_24 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__5;
x_25 = lean_string_dec_eq(x_19, x_24);
if (x_25 == 0)
{
lean_object* x_26; 
x_26 = lean_apply_1(x_1, x_18);
x_14 = x_26;
goto block_15;
}
else
{
uint8_t x_27; 
lean_dec_ref(x_1);
x_27 = !lean_is_exclusive(x_18);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; 
x_28 = lean_ctor_get(x_18, 0);
lean_dec(x_28);
lean_inc(x_2);
x_29 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson(x_2);
if (lean_obj_tag(x_29) == 0)
{
lean_dec_ref(x_29);
lean_free_object(x_18);
goto block_13;
}
else
{
uint8_t x_30; 
lean_dec(x_2);
x_30 = !lean_is_exclusive(x_29);
if (x_30 == 0)
{
lean_object* x_31; 
x_31 = lean_ctor_get(x_29, 0);
lean_ctor_set_tag(x_18, 2);
lean_ctor_set(x_18, 0, x_31);
lean_ctor_set(x_29, 0, x_18);
return x_29;
}
else
{
lean_object* x_32; lean_object* x_33; 
x_32 = lean_ctor_get(x_29, 0);
lean_inc(x_32);
lean_dec(x_29);
lean_ctor_set_tag(x_18, 2);
lean_ctor_set(x_18, 0, x_32);
x_33 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_33, 0, x_18);
return x_33;
}
}
}
else
{
lean_object* x_34; 
lean_dec(x_18);
lean_inc(x_2);
x_34 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson(x_2);
if (lean_obj_tag(x_34) == 0)
{
lean_dec_ref(x_34);
goto block_13;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
lean_dec(x_2);
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
if (lean_is_exclusive(x_34)) {
 lean_ctor_release(x_34, 0);
 x_36 = x_34;
} else {
 lean_dec_ref(x_34);
 x_36 = lean_box(0);
}
x_37 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_37, 0, x_35);
if (lean_is_scalar(x_36)) {
 x_38 = lean_alloc_ctor(1, 1, 0);
} else {
 x_38 = x_36;
}
lean_ctor_set(x_38, 0, x_37);
return x_38;
}
}
}
}
else
{
uint8_t x_39; 
lean_dec_ref(x_1);
x_39 = !lean_is_exclusive(x_18);
if (x_39 == 0)
{
lean_object* x_40; lean_object* x_41; 
x_40 = lean_ctor_get(x_18, 0);
lean_dec(x_40);
lean_inc(x_2);
x_41 = l_Lean_Lsp_instFromJsonRenameFile_fromJson(x_2);
if (lean_obj_tag(x_41) == 0)
{
lean_dec_ref(x_41);
lean_free_object(x_18);
goto block_13;
}
else
{
uint8_t x_42; 
lean_dec(x_2);
x_42 = !lean_is_exclusive(x_41);
if (x_42 == 0)
{
lean_object* x_43; 
x_43 = lean_ctor_get(x_41, 0);
lean_ctor_set_tag(x_18, 1);
lean_ctor_set(x_18, 0, x_43);
lean_ctor_set(x_41, 0, x_18);
return x_41;
}
else
{
lean_object* x_44; lean_object* x_45; 
x_44 = lean_ctor_get(x_41, 0);
lean_inc(x_44);
lean_dec(x_41);
lean_ctor_set_tag(x_18, 1);
lean_ctor_set(x_18, 0, x_44);
x_45 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_45, 0, x_18);
return x_45;
}
}
}
else
{
lean_object* x_46; 
lean_dec(x_18);
lean_inc(x_2);
x_46 = l_Lean_Lsp_instFromJsonRenameFile_fromJson(x_2);
if (lean_obj_tag(x_46) == 0)
{
lean_dec_ref(x_46);
goto block_13;
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
lean_dec(x_2);
x_47 = lean_ctor_get(x_46, 0);
lean_inc(x_47);
if (lean_is_exclusive(x_46)) {
 lean_ctor_release(x_46, 0);
 x_48 = x_46;
} else {
 lean_dec_ref(x_46);
 x_48 = lean_box(0);
}
x_49 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_49, 0, x_47);
if (lean_is_scalar(x_48)) {
 x_50 = lean_alloc_ctor(1, 1, 0);
} else {
 x_50 = x_48;
}
lean_ctor_set(x_50, 0, x_49);
return x_50;
}
}
}
}
else
{
uint8_t x_51; 
lean_dec_ref(x_1);
x_51 = !lean_is_exclusive(x_18);
if (x_51 == 0)
{
lean_object* x_52; lean_object* x_53; 
x_52 = lean_ctor_get(x_18, 0);
lean_dec(x_52);
lean_inc(x_2);
x_53 = l_Lean_Lsp_instFromJsonCreateFile_fromJson(x_2);
if (lean_obj_tag(x_53) == 0)
{
lean_dec_ref(x_53);
lean_free_object(x_18);
goto block_13;
}
else
{
uint8_t x_54; 
lean_dec(x_2);
x_54 = !lean_is_exclusive(x_53);
if (x_54 == 0)
{
lean_object* x_55; 
x_55 = lean_ctor_get(x_53, 0);
lean_ctor_set_tag(x_18, 0);
lean_ctor_set(x_18, 0, x_55);
lean_ctor_set(x_53, 0, x_18);
return x_53;
}
else
{
lean_object* x_56; lean_object* x_57; 
x_56 = lean_ctor_get(x_53, 0);
lean_inc(x_56);
lean_dec(x_53);
lean_ctor_set_tag(x_18, 0);
lean_ctor_set(x_18, 0, x_56);
x_57 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_57, 0, x_18);
return x_57;
}
}
}
else
{
lean_object* x_58; 
lean_dec(x_18);
lean_inc(x_2);
x_58 = l_Lean_Lsp_instFromJsonCreateFile_fromJson(x_2);
if (lean_obj_tag(x_58) == 0)
{
lean_dec_ref(x_58);
goto block_13;
}
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
lean_dec(x_2);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
if (lean_is_exclusive(x_58)) {
 lean_ctor_release(x_58, 0);
 x_60 = x_58;
} else {
 lean_dec_ref(x_58);
 x_60 = lean_box(0);
}
x_61 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_61, 0, x_59);
if (lean_is_scalar(x_60)) {
 x_62 = lean_alloc_ctor(1, 1, 0);
} else {
 x_62 = x_60;
}
lean_ctor_set(x_62, 0, x_61);
return x_62;
}
}
}
}
else
{
lean_object* x_63; 
x_63 = lean_apply_1(x_1, x_18);
x_14 = x_63;
goto block_15;
}
}
block_13:
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson(x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
block_15:
{
if (lean_obj_tag(x_14) == 0)
{
lean_dec_ref(x_14);
goto block_13;
}
else
{
lean_dec(x_2);
return x_14;
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentChange() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonDocumentChange___lam__0), 1, 0);
x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonDocumentChange___lam__1), 2, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 2);
x_4 = lean_ctor_get(x_1, 3);
x_5 = lean_ctor_get(x_1, 4);
x_6 = l_Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0(x_3);
x_7 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0_spec__0(x_4);
x_8 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0_spec__0(x_5);
lean_ctor_set(x_1, 4, x_8);
lean_ctor_set(x_1, 3, x_7);
lean_ctor_set(x_1, 2, x_6);
return x_1;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_9 = lean_ctor_get(x_1, 0);
x_10 = lean_ctor_get(x_1, 1);
x_11 = lean_ctor_get(x_1, 2);
x_12 = lean_ctor_get(x_1, 3);
x_13 = lean_ctor_get(x_1, 4);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_1);
x_14 = l_Array_toJson___at___00Lean_Lsp_instToJsonTextDocumentEdit_toJson_spec__0(x_11);
x_15 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0_spec__0(x_12);
x_16 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0_spec__0(x_13);
x_17 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_17, 0, x_9);
lean_ctor_set(x_17, 1, x_10);
lean_ctor_set(x_17, 2, x_14);
lean_ctor_set(x_17, 3, x_15);
lean_ctor_set(x_17, 4, x_16);
return x_17;
}
}
else
{
lean_object* x_18; 
x_18 = lean_box(1);
return x_18;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0_spec__0(x_1);
x_3 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6_spec__6(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 2);
x_4 = lean_ctor_get(x_1, 3);
x_5 = lean_ctor_get(x_1, 4);
x_6 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson(x_3);
x_7 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6_spec__6(x_4);
x_8 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6_spec__6(x_5);
lean_ctor_set(x_1, 4, x_8);
lean_ctor_set(x_1, 3, x_7);
lean_ctor_set(x_1, 2, x_6);
return x_1;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_9 = lean_ctor_get(x_1, 0);
x_10 = lean_ctor_get(x_1, 1);
x_11 = lean_ctor_get(x_1, 2);
x_12 = lean_ctor_get(x_1, 3);
x_13 = lean_ctor_get(x_1, 4);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_1);
x_14 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson(x_11);
x_15 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6_spec__6(x_12);
x_16 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6_spec__6(x_13);
x_17 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_17, 0, x_9);
lean_ctor_set(x_17, 1, x_10);
lean_ctor_set(x_17, 2, x_14);
lean_ctor_set(x_17, 3, x_15);
lean_ctor_set(x_17, 4, x_16);
return x_17;
}
}
else
{
lean_object* x_18; 
x_18 = lean_box(1);
return x_18;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Std_DTreeMap_Internal_Impl_map___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6_spec__6(x_1);
x_3 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3_spec__3(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
switch (lean_obj_tag(x_5)) {
case 0:
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_14 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_14);
lean_dec_ref(x_5);
x_15 = l_Lean_Lsp_instToJsonCreateFile_toJson(x_14);
x_16 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_17 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__2;
x_18 = l_Lean_Json_setObjVal_x21(x_15, x_16, x_17);
x_8 = x_18;
goto block_13;
}
case 1:
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_19 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_19);
lean_dec_ref(x_5);
x_20 = l_Lean_Lsp_instToJsonRenameFile_toJson(x_19);
x_21 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_22 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__4;
x_23 = l_Lean_Json_setObjVal_x21(x_20, x_21, x_22);
x_8 = x_23;
goto block_13;
}
case 2:
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_24 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_24);
lean_dec_ref(x_5);
x_25 = l_Lean_Lsp_instToJsonDeleteFile_toJson(x_24);
x_26 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_27 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__6;
x_28 = l_Lean_Json_setObjVal_x21(x_25, x_26, x_27);
x_8 = x_28;
goto block_13;
}
default: 
{
lean_object* x_29; lean_object* x_30; 
x_29 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_29);
lean_dec_ref(x_5);
x_30 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson(x_29);
x_8 = x_30;
goto block_13;
}
}
block_13:
{
size_t x_9; size_t x_10; lean_object* x_11; 
x_9 = 1;
x_10 = lean_usize_add(x_2, x_9);
x_11 = lean_array_uset(x_7, x_2, x_8);
x_2 = x_10;
x_3 = x_11;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3(lean_object* x_1) {
_start:
{
size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_array_size(x_1);
x_3 = 0;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3_spec__3(x_2, x_3, x_1);
x_5 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0_spec__0(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6_spec__6(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("changes", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("documentChanges", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("changeAnnotations", 17, 17);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkspaceEdit_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__0;
x_6 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__0(x_5, x_2);
x_7 = l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__1;
x_8 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3(x_7, x_3);
x_9 = l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__2;
x_10 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__6(x_9, x_4);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_8);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_6);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_16 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_14, x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonWorkspaceEdit_toJson_spec__3_spec__3_spec__3(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceEdit___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonWorkspaceEdit_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceEdit() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonWorkspaceEdit___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_4, 4);
lean_inc(x_9);
if (lean_is_exclusive(x_4)) {
 lean_ctor_release(x_4, 0);
 lean_ctor_release(x_4, 1);
 lean_ctor_release(x_4, 2);
 lean_ctor_release(x_4, 3);
 lean_ctor_release(x_4, 4);
 x_10 = x_4;
} else {
 lean_dec_ref(x_4);
 x_10 = lean_box(0);
}
lean_inc_ref(x_1);
lean_inc(x_6);
lean_inc_ref(x_2);
x_11 = lean_apply_2(x_1, x_2, x_6);
x_12 = lean_unbox(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_5);
x_13 = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4___redArg(x_1, x_2, x_3, x_8);
x_14 = lean_unsigned_to_nat(1u);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_15 = lean_ctor_get(x_9, 0);
x_16 = lean_ctor_get(x_13, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 1);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 2);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 3);
lean_inc(x_19);
x_20 = lean_ctor_get(x_13, 4);
lean_inc(x_20);
x_21 = lean_unsigned_to_nat(3u);
x_22 = lean_nat_mul(x_21, x_15);
x_23 = lean_nat_dec_lt(x_22, x_16);
lean_dec(x_22);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
x_24 = lean_nat_add(x_14, x_16);
lean_dec(x_16);
x_25 = lean_nat_add(x_24, x_15);
lean_dec(x_24);
if (lean_is_scalar(x_10)) {
 x_26 = lean_alloc_ctor(0, 5, 0);
} else {
 x_26 = x_10;
}
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_6);
lean_ctor_set(x_26, 2, x_7);
lean_ctor_set(x_26, 3, x_13);
lean_ctor_set(x_26, 4, x_9);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; 
if (lean_is_exclusive(x_13)) {
 lean_ctor_release(x_13, 0);
 lean_ctor_release(x_13, 1);
 lean_ctor_release(x_13, 2);
 lean_ctor_release(x_13, 3);
 lean_ctor_release(x_13, 4);
 x_27 = x_13;
} else {
 lean_dec_ref(x_13);
 x_27 = lean_box(0);
}
x_28 = lean_ctor_get(x_19, 0);
x_29 = lean_ctor_get(x_20, 0);
x_30 = lean_ctor_get(x_20, 1);
x_31 = lean_ctor_get(x_20, 2);
x_32 = lean_ctor_get(x_20, 3);
x_33 = lean_ctor_get(x_20, 4);
x_34 = lean_unsigned_to_nat(2u);
x_35 = lean_nat_mul(x_34, x_28);
x_36 = lean_nat_dec_lt(x_29, x_35);
lean_dec(x_35);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_47; lean_object* x_48; 
lean_inc(x_33);
lean_inc(x_32);
lean_inc(x_31);
lean_inc(x_30);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_37 = x_20;
} else {
 lean_dec_ref(x_20);
 x_37 = lean_box(0);
}
x_38 = lean_nat_add(x_14, x_16);
lean_dec(x_16);
x_39 = lean_nat_add(x_38, x_15);
lean_dec(x_38);
x_47 = lean_nat_add(x_14, x_28);
if (lean_obj_tag(x_32) == 0)
{
lean_object* x_55; 
x_55 = lean_ctor_get(x_32, 0);
lean_inc(x_55);
x_48 = x_55;
goto block_54;
}
else
{
lean_object* x_56; 
x_56 = lean_unsigned_to_nat(0u);
x_48 = x_56;
goto block_54;
}
block_46:
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_nat_add(x_41, x_42);
lean_dec(x_42);
lean_dec(x_41);
if (lean_is_scalar(x_37)) {
 x_44 = lean_alloc_ctor(0, 5, 0);
} else {
 x_44 = x_37;
}
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_6);
lean_ctor_set(x_44, 2, x_7);
lean_ctor_set(x_44, 3, x_33);
lean_ctor_set(x_44, 4, x_9);
if (lean_is_scalar(x_27)) {
 x_45 = lean_alloc_ctor(0, 5, 0);
} else {
 x_45 = x_27;
}
lean_ctor_set(x_45, 0, x_39);
lean_ctor_set(x_45, 1, x_30);
lean_ctor_set(x_45, 2, x_31);
lean_ctor_set(x_45, 3, x_40);
lean_ctor_set(x_45, 4, x_44);
return x_45;
}
block_54:
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_49 = lean_nat_add(x_47, x_48);
lean_dec(x_48);
lean_dec(x_47);
if (lean_is_scalar(x_10)) {
 x_50 = lean_alloc_ctor(0, 5, 0);
} else {
 x_50 = x_10;
}
lean_ctor_set(x_50, 0, x_49);
lean_ctor_set(x_50, 1, x_17);
lean_ctor_set(x_50, 2, x_18);
lean_ctor_set(x_50, 3, x_19);
lean_ctor_set(x_50, 4, x_32);
x_51 = lean_nat_add(x_14, x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_52; 
x_52 = lean_ctor_get(x_33, 0);
lean_inc(x_52);
x_40 = x_50;
x_41 = x_51;
x_42 = x_52;
goto block_46;
}
else
{
lean_object* x_53; 
x_53 = lean_unsigned_to_nat(0u);
x_40 = x_50;
x_41 = x_51;
x_42 = x_53;
goto block_46;
}
}
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; 
lean_dec(x_10);
x_57 = lean_nat_add(x_14, x_16);
lean_dec(x_16);
x_58 = lean_nat_add(x_57, x_15);
lean_dec(x_57);
x_59 = lean_nat_add(x_14, x_15);
x_60 = lean_nat_add(x_59, x_29);
lean_dec(x_59);
lean_inc_ref(x_9);
if (lean_is_scalar(x_27)) {
 x_61 = lean_alloc_ctor(0, 5, 0);
} else {
 x_61 = x_27;
}
lean_ctor_set(x_61, 0, x_60);
lean_ctor_set(x_61, 1, x_6);
lean_ctor_set(x_61, 2, x_7);
lean_ctor_set(x_61, 3, x_20);
lean_ctor_set(x_61, 4, x_9);
x_62 = !lean_is_exclusive(x_9);
if (x_62 == 0)
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_63 = lean_ctor_get(x_9, 4);
lean_dec(x_63);
x_64 = lean_ctor_get(x_9, 3);
lean_dec(x_64);
x_65 = lean_ctor_get(x_9, 2);
lean_dec(x_65);
x_66 = lean_ctor_get(x_9, 1);
lean_dec(x_66);
x_67 = lean_ctor_get(x_9, 0);
lean_dec(x_67);
lean_ctor_set(x_9, 4, x_61);
lean_ctor_set(x_9, 3, x_19);
lean_ctor_set(x_9, 2, x_18);
lean_ctor_set(x_9, 1, x_17);
lean_ctor_set(x_9, 0, x_58);
return x_9;
}
else
{
lean_object* x_68; 
lean_dec(x_9);
x_68 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_68, 0, x_58);
lean_ctor_set(x_68, 1, x_17);
lean_ctor_set(x_68, 2, x_18);
lean_ctor_set(x_68, 3, x_19);
lean_ctor_set(x_68, 4, x_61);
return x_68;
}
}
}
}
else
{
lean_object* x_69; 
x_69 = lean_ctor_get(x_13, 3);
lean_inc(x_69);
if (lean_obj_tag(x_69) == 0)
{
uint8_t x_70; 
x_70 = !lean_is_exclusive(x_13);
if (x_70 == 0)
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_71 = lean_ctor_get(x_13, 4);
x_72 = lean_ctor_get(x_13, 1);
x_73 = lean_ctor_get(x_13, 2);
x_74 = lean_ctor_get(x_13, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_13, 0);
lean_dec(x_75);
x_76 = lean_unsigned_to_nat(3u);
lean_inc(x_71);
lean_ctor_set(x_13, 3, x_71);
lean_ctor_set(x_13, 2, x_7);
lean_ctor_set(x_13, 1, x_6);
lean_ctor_set(x_13, 0, x_14);
if (lean_is_scalar(x_10)) {
 x_77 = lean_alloc_ctor(0, 5, 0);
} else {
 x_77 = x_10;
}
lean_ctor_set(x_77, 0, x_76);
lean_ctor_set(x_77, 1, x_72);
lean_ctor_set(x_77, 2, x_73);
lean_ctor_set(x_77, 3, x_69);
lean_ctor_set(x_77, 4, x_13);
return x_77;
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_78 = lean_ctor_get(x_13, 4);
x_79 = lean_ctor_get(x_13, 1);
x_80 = lean_ctor_get(x_13, 2);
lean_inc(x_78);
lean_inc(x_80);
lean_inc(x_79);
lean_dec(x_13);
x_81 = lean_unsigned_to_nat(3u);
lean_inc(x_78);
x_82 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_82, 0, x_14);
lean_ctor_set(x_82, 1, x_6);
lean_ctor_set(x_82, 2, x_7);
lean_ctor_set(x_82, 3, x_78);
lean_ctor_set(x_82, 4, x_78);
if (lean_is_scalar(x_10)) {
 x_83 = lean_alloc_ctor(0, 5, 0);
} else {
 x_83 = x_10;
}
lean_ctor_set(x_83, 0, x_81);
lean_ctor_set(x_83, 1, x_79);
lean_ctor_set(x_83, 2, x_80);
lean_ctor_set(x_83, 3, x_69);
lean_ctor_set(x_83, 4, x_82);
return x_83;
}
}
else
{
lean_object* x_84; 
x_84 = lean_ctor_get(x_13, 4);
lean_inc(x_84);
if (lean_obj_tag(x_84) == 0)
{
uint8_t x_85; 
x_85 = !lean_is_exclusive(x_13);
if (x_85 == 0)
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; 
x_86 = lean_ctor_get(x_13, 1);
x_87 = lean_ctor_get(x_13, 2);
x_88 = lean_ctor_get(x_13, 4);
lean_dec(x_88);
x_89 = lean_ctor_get(x_13, 3);
lean_dec(x_89);
x_90 = lean_ctor_get(x_13, 0);
lean_dec(x_90);
x_91 = !lean_is_exclusive(x_84);
if (x_91 == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_92 = lean_ctor_get(x_84, 1);
x_93 = lean_ctor_get(x_84, 2);
x_94 = lean_ctor_get(x_84, 4);
lean_dec(x_94);
x_95 = lean_ctor_get(x_84, 3);
lean_dec(x_95);
x_96 = lean_ctor_get(x_84, 0);
lean_dec(x_96);
x_97 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_84, 4, x_69);
lean_ctor_set(x_84, 3, x_69);
lean_ctor_set(x_84, 2, x_87);
lean_ctor_set(x_84, 1, x_86);
lean_ctor_set(x_84, 0, x_14);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 2, x_7);
lean_ctor_set(x_13, 1, x_6);
lean_ctor_set(x_13, 0, x_14);
if (lean_is_scalar(x_10)) {
 x_98 = lean_alloc_ctor(0, 5, 0);
} else {
 x_98 = x_10;
}
lean_ctor_set(x_98, 0, x_97);
lean_ctor_set(x_98, 1, x_92);
lean_ctor_set(x_98, 2, x_93);
lean_ctor_set(x_98, 3, x_84);
lean_ctor_set(x_98, 4, x_13);
return x_98;
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; 
x_99 = lean_ctor_get(x_84, 1);
x_100 = lean_ctor_get(x_84, 2);
lean_inc(x_100);
lean_inc(x_99);
lean_dec(x_84);
x_101 = lean_unsigned_to_nat(3u);
x_102 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_102, 0, x_14);
lean_ctor_set(x_102, 1, x_86);
lean_ctor_set(x_102, 2, x_87);
lean_ctor_set(x_102, 3, x_69);
lean_ctor_set(x_102, 4, x_69);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 2, x_7);
lean_ctor_set(x_13, 1, x_6);
lean_ctor_set(x_13, 0, x_14);
if (lean_is_scalar(x_10)) {
 x_103 = lean_alloc_ctor(0, 5, 0);
} else {
 x_103 = x_10;
}
lean_ctor_set(x_103, 0, x_101);
lean_ctor_set(x_103, 1, x_99);
lean_ctor_set(x_103, 2, x_100);
lean_ctor_set(x_103, 3, x_102);
lean_ctor_set(x_103, 4, x_13);
return x_103;
}
}
else
{
lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; 
x_104 = lean_ctor_get(x_13, 1);
x_105 = lean_ctor_get(x_13, 2);
lean_inc(x_105);
lean_inc(x_104);
lean_dec(x_13);
x_106 = lean_ctor_get(x_84, 1);
lean_inc(x_106);
x_107 = lean_ctor_get(x_84, 2);
lean_inc(x_107);
if (lean_is_exclusive(x_84)) {
 lean_ctor_release(x_84, 0);
 lean_ctor_release(x_84, 1);
 lean_ctor_release(x_84, 2);
 lean_ctor_release(x_84, 3);
 lean_ctor_release(x_84, 4);
 x_108 = x_84;
} else {
 lean_dec_ref(x_84);
 x_108 = lean_box(0);
}
x_109 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_108)) {
 x_110 = lean_alloc_ctor(0, 5, 0);
} else {
 x_110 = x_108;
}
lean_ctor_set(x_110, 0, x_14);
lean_ctor_set(x_110, 1, x_104);
lean_ctor_set(x_110, 2, x_105);
lean_ctor_set(x_110, 3, x_69);
lean_ctor_set(x_110, 4, x_69);
x_111 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_111, 0, x_14);
lean_ctor_set(x_111, 1, x_6);
lean_ctor_set(x_111, 2, x_7);
lean_ctor_set(x_111, 3, x_69);
lean_ctor_set(x_111, 4, x_69);
if (lean_is_scalar(x_10)) {
 x_112 = lean_alloc_ctor(0, 5, 0);
} else {
 x_112 = x_10;
}
lean_ctor_set(x_112, 0, x_109);
lean_ctor_set(x_112, 1, x_106);
lean_ctor_set(x_112, 2, x_107);
lean_ctor_set(x_112, 3, x_110);
lean_ctor_set(x_112, 4, x_111);
return x_112;
}
}
else
{
lean_object* x_113; lean_object* x_114; 
x_113 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_10)) {
 x_114 = lean_alloc_ctor(0, 5, 0);
} else {
 x_114 = x_10;
}
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_6);
lean_ctor_set(x_114, 2, x_7);
lean_ctor_set(x_114, 3, x_13);
lean_ctor_set(x_114, 4, x_84);
return x_114;
}
}
}
}
case 1:
{
lean_object* x_115; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec_ref(x_1);
if (lean_is_scalar(x_10)) {
 x_115 = lean_alloc_ctor(0, 5, 0);
} else {
 x_115 = x_10;
}
lean_ctor_set(x_115, 0, x_5);
lean_ctor_set(x_115, 1, x_2);
lean_ctor_set(x_115, 2, x_3);
lean_ctor_set(x_115, 3, x_8);
lean_ctor_set(x_115, 4, x_9);
return x_115;
}
default: 
{
lean_object* x_116; lean_object* x_117; 
lean_dec(x_5);
x_116 = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4___redArg(x_1, x_2, x_3, x_9);
x_117 = lean_unsigned_to_nat(1u);
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; 
x_118 = lean_ctor_get(x_8, 0);
x_119 = lean_ctor_get(x_116, 0);
lean_inc(x_119);
x_120 = lean_ctor_get(x_116, 1);
lean_inc(x_120);
x_121 = lean_ctor_get(x_116, 2);
lean_inc(x_121);
x_122 = lean_ctor_get(x_116, 3);
lean_inc(x_122);
x_123 = lean_ctor_get(x_116, 4);
lean_inc(x_123);
x_124 = lean_unsigned_to_nat(3u);
x_125 = lean_nat_mul(x_124, x_118);
x_126 = lean_nat_dec_lt(x_125, x_119);
lean_dec(x_125);
if (x_126 == 0)
{
lean_object* x_127; lean_object* x_128; lean_object* x_129; 
lean_dec(x_123);
lean_dec(x_122);
lean_dec(x_121);
lean_dec(x_120);
x_127 = lean_nat_add(x_117, x_118);
x_128 = lean_nat_add(x_127, x_119);
lean_dec(x_119);
lean_dec(x_127);
if (lean_is_scalar(x_10)) {
 x_129 = lean_alloc_ctor(0, 5, 0);
} else {
 x_129 = x_10;
}
lean_ctor_set(x_129, 0, x_128);
lean_ctor_set(x_129, 1, x_6);
lean_ctor_set(x_129, 2, x_7);
lean_ctor_set(x_129, 3, x_8);
lean_ctor_set(x_129, 4, x_116);
return x_129;
}
else
{
lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; 
if (lean_is_exclusive(x_116)) {
 lean_ctor_release(x_116, 0);
 lean_ctor_release(x_116, 1);
 lean_ctor_release(x_116, 2);
 lean_ctor_release(x_116, 3);
 lean_ctor_release(x_116, 4);
 x_130 = x_116;
} else {
 lean_dec_ref(x_116);
 x_130 = lean_box(0);
}
x_131 = lean_ctor_get(x_122, 0);
x_132 = lean_ctor_get(x_122, 1);
x_133 = lean_ctor_get(x_122, 2);
x_134 = lean_ctor_get(x_122, 3);
x_135 = lean_ctor_get(x_122, 4);
x_136 = lean_ctor_get(x_123, 0);
x_137 = lean_unsigned_to_nat(2u);
x_138 = lean_nat_mul(x_137, x_136);
x_139 = lean_nat_dec_lt(x_131, x_138);
lean_dec(x_138);
if (x_139 == 0)
{
lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_150; 
lean_inc(x_135);
lean_inc(x_134);
lean_inc(x_133);
lean_inc(x_132);
if (lean_is_exclusive(x_122)) {
 lean_ctor_release(x_122, 0);
 lean_ctor_release(x_122, 1);
 lean_ctor_release(x_122, 2);
 lean_ctor_release(x_122, 3);
 lean_ctor_release(x_122, 4);
 x_140 = x_122;
} else {
 lean_dec_ref(x_122);
 x_140 = lean_box(0);
}
x_141 = lean_nat_add(x_117, x_118);
x_142 = lean_nat_add(x_141, x_119);
lean_dec(x_119);
if (lean_obj_tag(x_134) == 0)
{
lean_object* x_157; 
x_157 = lean_ctor_get(x_134, 0);
lean_inc(x_157);
x_150 = x_157;
goto block_156;
}
else
{
lean_object* x_158; 
x_158 = lean_unsigned_to_nat(0u);
x_150 = x_158;
goto block_156;
}
block_149:
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_146 = lean_nat_add(x_143, x_145);
lean_dec(x_145);
lean_dec(x_143);
if (lean_is_scalar(x_140)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_140;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_120);
lean_ctor_set(x_147, 2, x_121);
lean_ctor_set(x_147, 3, x_135);
lean_ctor_set(x_147, 4, x_123);
if (lean_is_scalar(x_130)) {
 x_148 = lean_alloc_ctor(0, 5, 0);
} else {
 x_148 = x_130;
}
lean_ctor_set(x_148, 0, x_142);
lean_ctor_set(x_148, 1, x_132);
lean_ctor_set(x_148, 2, x_133);
lean_ctor_set(x_148, 3, x_144);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
block_156:
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; 
x_151 = lean_nat_add(x_141, x_150);
lean_dec(x_150);
lean_dec(x_141);
if (lean_is_scalar(x_10)) {
 x_152 = lean_alloc_ctor(0, 5, 0);
} else {
 x_152 = x_10;
}
lean_ctor_set(x_152, 0, x_151);
lean_ctor_set(x_152, 1, x_6);
lean_ctor_set(x_152, 2, x_7);
lean_ctor_set(x_152, 3, x_8);
lean_ctor_set(x_152, 4, x_134);
x_153 = lean_nat_add(x_117, x_136);
if (lean_obj_tag(x_135) == 0)
{
lean_object* x_154; 
x_154 = lean_ctor_get(x_135, 0);
lean_inc(x_154);
x_143 = x_153;
x_144 = x_152;
x_145 = x_154;
goto block_149;
}
else
{
lean_object* x_155; 
x_155 = lean_unsigned_to_nat(0u);
x_143 = x_153;
x_144 = x_152;
x_145 = x_155;
goto block_149;
}
}
}
else
{
lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; 
lean_dec(x_10);
x_159 = lean_nat_add(x_117, x_118);
x_160 = lean_nat_add(x_159, x_119);
lean_dec(x_119);
x_161 = lean_nat_add(x_159, x_131);
lean_dec(x_159);
lean_inc_ref(x_8);
if (lean_is_scalar(x_130)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_130;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_6);
lean_ctor_set(x_162, 2, x_7);
lean_ctor_set(x_162, 3, x_8);
lean_ctor_set(x_162, 4, x_122);
x_163 = !lean_is_exclusive(x_8);
if (x_163 == 0)
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; 
x_164 = lean_ctor_get(x_8, 4);
lean_dec(x_164);
x_165 = lean_ctor_get(x_8, 3);
lean_dec(x_165);
x_166 = lean_ctor_get(x_8, 2);
lean_dec(x_166);
x_167 = lean_ctor_get(x_8, 1);
lean_dec(x_167);
x_168 = lean_ctor_get(x_8, 0);
lean_dec(x_168);
lean_ctor_set(x_8, 4, x_123);
lean_ctor_set(x_8, 3, x_162);
lean_ctor_set(x_8, 2, x_121);
lean_ctor_set(x_8, 1, x_120);
lean_ctor_set(x_8, 0, x_160);
return x_8;
}
else
{
lean_object* x_169; 
lean_dec(x_8);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_160);
lean_ctor_set(x_169, 1, x_120);
lean_ctor_set(x_169, 2, x_121);
lean_ctor_set(x_169, 3, x_162);
lean_ctor_set(x_169, 4, x_123);
return x_169;
}
}
}
}
else
{
lean_object* x_170; 
x_170 = lean_ctor_get(x_116, 3);
lean_inc(x_170);
if (lean_obj_tag(x_170) == 0)
{
uint8_t x_171; 
x_171 = !lean_is_exclusive(x_116);
if (x_171 == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; 
x_172 = lean_ctor_get(x_116, 4);
x_173 = lean_ctor_get(x_116, 3);
lean_dec(x_173);
x_174 = lean_ctor_get(x_116, 0);
lean_dec(x_174);
x_175 = !lean_is_exclusive(x_170);
if (x_175 == 0)
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; 
x_176 = lean_ctor_get(x_170, 1);
x_177 = lean_ctor_get(x_170, 2);
x_178 = lean_ctor_get(x_170, 4);
lean_dec(x_178);
x_179 = lean_ctor_get(x_170, 3);
lean_dec(x_179);
x_180 = lean_ctor_get(x_170, 0);
lean_dec(x_180);
x_181 = lean_unsigned_to_nat(3u);
lean_inc_n(x_172, 2);
lean_ctor_set(x_170, 4, x_172);
lean_ctor_set(x_170, 3, x_172);
lean_ctor_set(x_170, 2, x_7);
lean_ctor_set(x_170, 1, x_6);
lean_ctor_set(x_170, 0, x_117);
lean_inc(x_172);
lean_ctor_set(x_116, 3, x_172);
lean_ctor_set(x_116, 0, x_117);
if (lean_is_scalar(x_10)) {
 x_182 = lean_alloc_ctor(0, 5, 0);
} else {
 x_182 = x_10;
}
lean_ctor_set(x_182, 0, x_181);
lean_ctor_set(x_182, 1, x_176);
lean_ctor_set(x_182, 2, x_177);
lean_ctor_set(x_182, 3, x_170);
lean_ctor_set(x_182, 4, x_116);
return x_182;
}
else
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
x_183 = lean_ctor_get(x_170, 1);
x_184 = lean_ctor_get(x_170, 2);
lean_inc(x_184);
lean_inc(x_183);
lean_dec(x_170);
x_185 = lean_unsigned_to_nat(3u);
lean_inc_n(x_172, 2);
x_186 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_186, 0, x_117);
lean_ctor_set(x_186, 1, x_6);
lean_ctor_set(x_186, 2, x_7);
lean_ctor_set(x_186, 3, x_172);
lean_ctor_set(x_186, 4, x_172);
lean_inc(x_172);
lean_ctor_set(x_116, 3, x_172);
lean_ctor_set(x_116, 0, x_117);
if (lean_is_scalar(x_10)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_10;
}
lean_ctor_set(x_187, 0, x_185);
lean_ctor_set(x_187, 1, x_183);
lean_ctor_set(x_187, 2, x_184);
lean_ctor_set(x_187, 3, x_186);
lean_ctor_set(x_187, 4, x_116);
return x_187;
}
}
else
{
lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_188 = lean_ctor_get(x_116, 4);
x_189 = lean_ctor_get(x_116, 1);
x_190 = lean_ctor_get(x_116, 2);
lean_inc(x_188);
lean_inc(x_190);
lean_inc(x_189);
lean_dec(x_116);
x_191 = lean_ctor_get(x_170, 1);
lean_inc(x_191);
x_192 = lean_ctor_get(x_170, 2);
lean_inc(x_192);
if (lean_is_exclusive(x_170)) {
 lean_ctor_release(x_170, 0);
 lean_ctor_release(x_170, 1);
 lean_ctor_release(x_170, 2);
 lean_ctor_release(x_170, 3);
 lean_ctor_release(x_170, 4);
 x_193 = x_170;
} else {
 lean_dec_ref(x_170);
 x_193 = lean_box(0);
}
x_194 = lean_unsigned_to_nat(3u);
lean_inc_n(x_188, 2);
if (lean_is_scalar(x_193)) {
 x_195 = lean_alloc_ctor(0, 5, 0);
} else {
 x_195 = x_193;
}
lean_ctor_set(x_195, 0, x_117);
lean_ctor_set(x_195, 1, x_6);
lean_ctor_set(x_195, 2, x_7);
lean_ctor_set(x_195, 3, x_188);
lean_ctor_set(x_195, 4, x_188);
lean_inc(x_188);
x_196 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_196, 0, x_117);
lean_ctor_set(x_196, 1, x_189);
lean_ctor_set(x_196, 2, x_190);
lean_ctor_set(x_196, 3, x_188);
lean_ctor_set(x_196, 4, x_188);
if (lean_is_scalar(x_10)) {
 x_197 = lean_alloc_ctor(0, 5, 0);
} else {
 x_197 = x_10;
}
lean_ctor_set(x_197, 0, x_194);
lean_ctor_set(x_197, 1, x_191);
lean_ctor_set(x_197, 2, x_192);
lean_ctor_set(x_197, 3, x_195);
lean_ctor_set(x_197, 4, x_196);
return x_197;
}
}
else
{
lean_object* x_198; 
x_198 = lean_ctor_get(x_116, 4);
lean_inc(x_198);
if (lean_obj_tag(x_198) == 0)
{
uint8_t x_199; 
x_199 = !lean_is_exclusive(x_116);
if (x_199 == 0)
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; 
x_200 = lean_ctor_get(x_116, 1);
x_201 = lean_ctor_get(x_116, 2);
x_202 = lean_ctor_get(x_116, 4);
lean_dec(x_202);
x_203 = lean_ctor_get(x_116, 3);
lean_dec(x_203);
x_204 = lean_ctor_get(x_116, 0);
lean_dec(x_204);
x_205 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_116, 4, x_170);
lean_ctor_set(x_116, 2, x_7);
lean_ctor_set(x_116, 1, x_6);
lean_ctor_set(x_116, 0, x_117);
if (lean_is_scalar(x_10)) {
 x_206 = lean_alloc_ctor(0, 5, 0);
} else {
 x_206 = x_10;
}
lean_ctor_set(x_206, 0, x_205);
lean_ctor_set(x_206, 1, x_200);
lean_ctor_set(x_206, 2, x_201);
lean_ctor_set(x_206, 3, x_116);
lean_ctor_set(x_206, 4, x_198);
return x_206;
}
else
{
lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; 
x_207 = lean_ctor_get(x_116, 1);
x_208 = lean_ctor_get(x_116, 2);
lean_inc(x_208);
lean_inc(x_207);
lean_dec(x_116);
x_209 = lean_unsigned_to_nat(3u);
x_210 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_210, 0, x_117);
lean_ctor_set(x_210, 1, x_6);
lean_ctor_set(x_210, 2, x_7);
lean_ctor_set(x_210, 3, x_170);
lean_ctor_set(x_210, 4, x_170);
if (lean_is_scalar(x_10)) {
 x_211 = lean_alloc_ctor(0, 5, 0);
} else {
 x_211 = x_10;
}
lean_ctor_set(x_211, 0, x_209);
lean_ctor_set(x_211, 1, x_207);
lean_ctor_set(x_211, 2, x_208);
lean_ctor_set(x_211, 3, x_210);
lean_ctor_set(x_211, 4, x_198);
return x_211;
}
}
else
{
lean_object* x_212; lean_object* x_213; 
x_212 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_10)) {
 x_213 = lean_alloc_ctor(0, 5, 0);
} else {
 x_213 = x_10;
}
lean_ctor_set(x_213, 0, x_212);
lean_ctor_set(x_213, 1, x_6);
lean_ctor_set(x_213, 2, x_7);
lean_ctor_set(x_213, 3, x_198);
lean_ctor_set(x_213, 4, x_116);
return x_213;
}
}
}
}
}
}
else
{
lean_object* x_214; lean_object* x_215; 
lean_dec_ref(x_1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_2);
lean_ctor_set(x_215, 2, x_3);
lean_ctor_set(x_215, 3, x_4);
lean_ctor_set(x_215, 4, x_4);
return x_215;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4___redArg(x_1, x_3, x_4, x_5);
return x_7;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lean_Lsp_instFromJsonDocumentChange___lam__0___closed__0;
x_3 = lean_unsigned_to_nat(80u);
x_4 = l_Lean_Json_pretty(x_1, x_3);
x_5 = lean_string_append(x_2, x_4);
lean_dec_ref(x_4);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_22; lean_object* x_24; lean_object* x_25; 
x_6 = lean_array_uget(x_3, x_2);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_3, x_2, x_7);
x_24 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
lean_inc(x_6);
x_25 = l_Lean_Json_getObjVal_x3f(x_6, x_24);
if (lean_obj_tag(x_25) == 0)
{
lean_dec_ref(x_25);
goto block_21;
}
else
{
lean_object* x_26; 
x_26 = lean_ctor_get(x_25, 0);
lean_inc(x_26);
lean_dec_ref(x_25);
if (lean_obj_tag(x_26) == 3)
{
lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_27 = lean_ctor_get(x_26, 0);
x_28 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__1;
x_29 = lean_string_dec_eq(x_27, x_28);
if (x_29 == 0)
{
lean_object* x_30; uint8_t x_31; 
x_30 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__3;
x_31 = lean_string_dec_eq(x_27, x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; 
x_32 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__5;
x_33 = lean_string_dec_eq(x_27, x_32);
if (x_33 == 0)
{
lean_object* x_34; 
x_34 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0___lam__0(x_26);
x_22 = x_34;
goto block_23;
}
else
{
lean_object* x_35; 
lean_dec_ref(x_26);
lean_inc(x_6);
x_35 = l_Lean_Lsp_instFromJsonDeleteFile_fromJson(x_6);
if (lean_obj_tag(x_35) == 0)
{
lean_dec_ref(x_35);
goto block_21;
}
else
{
uint8_t x_36; 
lean_dec(x_6);
x_36 = !lean_is_exclusive(x_35);
if (x_36 == 0)
{
lean_ctor_set_tag(x_35, 2);
x_9 = x_35;
goto block_14;
}
else
{
lean_object* x_37; lean_object* x_38; 
x_37 = lean_ctor_get(x_35, 0);
lean_inc(x_37);
lean_dec(x_35);
x_38 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_38, 0, x_37);
x_9 = x_38;
goto block_14;
}
}
}
}
else
{
lean_object* x_39; 
lean_dec_ref(x_26);
lean_inc(x_6);
x_39 = l_Lean_Lsp_instFromJsonRenameFile_fromJson(x_6);
if (lean_obj_tag(x_39) == 0)
{
lean_dec_ref(x_39);
goto block_21;
}
else
{
uint8_t x_40; 
lean_dec(x_6);
x_40 = !lean_is_exclusive(x_39);
if (x_40 == 0)
{
x_9 = x_39;
goto block_14;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_39, 0);
lean_inc(x_41);
lean_dec(x_39);
x_42 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_42, 0, x_41);
x_9 = x_42;
goto block_14;
}
}
}
}
else
{
lean_object* x_43; 
lean_dec_ref(x_26);
lean_inc(x_6);
x_43 = l_Lean_Lsp_instFromJsonCreateFile_fromJson(x_6);
if (lean_obj_tag(x_43) == 0)
{
lean_dec_ref(x_43);
goto block_21;
}
else
{
uint8_t x_44; 
lean_dec(x_6);
x_44 = !lean_is_exclusive(x_43);
if (x_44 == 0)
{
lean_ctor_set_tag(x_43, 0);
x_9 = x_43;
goto block_14;
}
else
{
lean_object* x_45; lean_object* x_46; 
x_45 = lean_ctor_get(x_43, 0);
lean_inc(x_45);
lean_dec(x_43);
x_46 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_46, 0, x_45);
x_9 = x_46;
goto block_14;
}
}
}
}
else
{
lean_object* x_47; 
x_47 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0___lam__0(x_26);
x_22 = x_47;
goto block_23;
}
}
block_14:
{
size_t x_10; size_t x_11; lean_object* x_12; 
x_10 = 1;
x_11 = lean_usize_add(x_2, x_10);
x_12 = lean_array_uset(x_8, x_2, x_9);
x_2 = x_11;
x_3 = x_12;
goto _start;
}
block_21:
{
lean_object* x_15; 
x_15 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson(x_6);
if (lean_obj_tag(x_15) == 0)
{
uint8_t x_16; 
lean_dec_ref(x_8);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
return x_15;
}
else
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_15, 0);
lean_inc(x_17);
lean_dec(x_15);
x_18 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
}
else
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
lean_dec_ref(x_15);
x_20 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_20, 0, x_19);
x_9 = x_20;
goto block_14;
}
}
block_23:
{
lean_dec_ref(x_22);
goto block_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 4)
{
lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_array_size(x_2);
x_4 = 0;
x_5 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0(x_3, x_4, x_2);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_6 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0;
x_7 = lean_unsigned_to_nat(80u);
x_8 = l_Lean_Json_pretty(x_1, x_7);
x_9 = lean_string_append(x_6, x_8);
lean_dec_ref(x_8);
x_10 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1;
x_11 = lean_string_append(x_9, x_10);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = lean_string_dec_lt(x_1, x_2);
if (x_3 == 0)
{
uint8_t x_4; 
x_4 = lean_string_dec_eq(x_1, x_2);
if (x_4 == 0)
{
uint8_t x_5; 
x_5 = 2;
return x_5;
}
else
{
uint8_t x_6; 
x_6 = 1;
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = 0;
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___lam__0(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 2);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 4);
lean_inc(x_7);
lean_dec_ref(x_3);
lean_inc_ref(x_1);
x_8 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__5(x_1, x_2, x_6);
if (lean_obj_tag(x_8) == 0)
{
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec_ref(x_1);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec_ref(x_8);
x_10 = l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson(x_5);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_4);
lean_dec_ref(x_1);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
return x_10;
}
else
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
lean_dec_ref(x_10);
lean_inc_ref(x_1);
x_15 = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4___redArg(x_1, x_4, x_14, x_9);
x_2 = x_15;
x_3 = x_7;
goto _start;
}
}
}
else
{
lean_object* x_17; 
lean_dec_ref(x_1);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_2);
return x_17;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObj_x3f(x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec_ref(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
lean_dec_ref(x_3);
x_8 = lean_box(1);
x_9 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__5(x_1, x_8, x_7);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___closed__0;
return x_2;
}
else
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_alloc_closure((void*)(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___lam__0___boxed), 2, 0);
x_4 = l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4(x_3, x_1);
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_ctor_get(x_4, 0);
lean_inc(x_6);
lean_dec(x_4);
x_7 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
else
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_4);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_4, 0);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_4, 0, x_10);
return x_4;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_4, 0);
lean_inc(x_11);
lean_dec(x_4);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9_spec__9_spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 2);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 4);
lean_inc(x_7);
lean_dec_ref(x_3);
lean_inc_ref(x_1);
x_8 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9_spec__9_spec__9(x_1, x_2, x_6);
if (lean_obj_tag(x_8) == 0)
{
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec_ref(x_1);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec_ref(x_8);
x_10 = l_Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentEdit_fromJson_spec__1_spec__1(x_5);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_4);
lean_dec_ref(x_1);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
return x_10;
}
else
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
lean_dec_ref(x_10);
lean_inc_ref(x_1);
x_15 = l_Std_DTreeMap_Internal_Impl_insert___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4_spec__4_spec__4___redArg(x_1, x_4, x_14, x_9);
x_2 = x_15;
x_3 = x_7;
goto _start;
}
}
}
else
{
lean_object* x_17; 
lean_dec_ref(x_1);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_2);
return x_17;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9_spec__9(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObj_x3f(x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec_ref(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
lean_dec_ref(x_3);
x_8 = lean_box(1);
x_9 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00__private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9_spec__9_spec__9(x_1, x_8, x_7);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___closed__0;
return x_2;
}
else
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_alloc_closure((void*)(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___lam__0___boxed), 2, 0);
x_4 = l___private_Lean_Data_Json_FromToJson_Extra_0__Lean_TreeMap_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9_spec__9(x_3, x_1);
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_ctor_get(x_4, 0);
lean_inc(x_6);
lean_dec(x_4);
x_7 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
else
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_4);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_4, 0);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_4, 0, x_10);
return x_4;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_4, 0);
lean_inc(x_11);
lean_dec(x_4);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9_spec__9(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("WorkspaceEdit", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("changes\?", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("documentChanges\?", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__9;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__11() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__10;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__11;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__12;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("changeAnnotations\?", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__14;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__16() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__15;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__16;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__17;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__1;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__13;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__13;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__2;
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__18;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__18;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
uint8_t x_43; 
x_43 = !lean_is_exclusive(x_31);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; 
x_44 = lean_ctor_get(x_31, 0);
x_45 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_45, 0, x_15);
lean_ctor_set(x_45, 1, x_29);
lean_ctor_set(x_45, 2, x_44);
lean_ctor_set(x_31, 0, x_45);
return x_31;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_31, 0);
lean_inc(x_46);
lean_dec(x_31);
x_47 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_47, 0, x_15);
lean_ctor_set(x_47, 1, x_29);
lean_ctor_set(x_47, 2, x_46);
x_48 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_48, 0, x_47);
return x_48;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__9(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceEdit() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instEmptyCollection___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
lean_ctor_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instEmptyCollection() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_WorkspaceEdit_instEmptyCollection___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__2(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_1);
return x_3;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_2);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_2, 0);
x_6 = l_Array_append___redArg(x_5, x_1);
lean_dec_ref(x_1);
lean_ctor_set(x_2, 0, x_6);
return x_2;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_2, 0);
lean_inc(x_7);
lean_dec(x_2);
x_8 = l_Array_append___redArg(x_7, x_1);
lean_dec_ref(x_1);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_alloc_closure((void*)(l_Lean_Lsp_WorkspaceEdit_instAppend___lam__2), 2, 1);
lean_closure_set(x_5, 0, x_4);
x_6 = l_Std_DTreeMap_Internal_Impl_Const_alter___redArg(x_1, x_3, x_5, x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_WorkspaceEdit_instAppend___lam__1(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_alloc_closure((void*)(l_Lean_Lsp_WorkspaceEdit_instAppend___lam__1___boxed), 2, 1);
lean_closure_set(x_5, 0, x_4);
x_6 = l_Std_DTreeMap_Internal_Impl_Const_alter___redArg(x_1, x_3, x_5, x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_instAppend___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_35; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 2);
lean_inc(x_7);
lean_dec_ref(x_4);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_46; 
lean_dec_ref(x_2);
x_46 = lean_ctor_get(x_3, 0);
lean_inc(x_46);
x_35 = x_46;
goto block_45;
}
else
{
lean_object* x_47; 
x_47 = lean_ctor_get(x_3, 0);
lean_inc(x_47);
if (lean_obj_tag(x_47) == 0)
{
lean_dec_ref(x_2);
x_35 = x_5;
goto block_45;
}
else
{
lean_object* x_48; uint8_t x_49; 
x_48 = lean_ctor_get(x_5, 0);
lean_inc(x_48);
lean_dec_ref(x_5);
x_49 = !lean_is_exclusive(x_47);
if (x_49 == 0)
{
lean_object* x_50; lean_object* x_51; 
x_50 = lean_ctor_get(x_47, 0);
x_51 = l_Std_DTreeMap_Internal_Impl_foldl___redArg(x_2, x_50, x_48);
lean_ctor_set(x_47, 0, x_51);
x_35 = x_47;
goto block_45;
}
else
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_52 = lean_ctor_get(x_47, 0);
lean_inc(x_52);
lean_dec(x_47);
x_53 = l_Std_DTreeMap_Internal_Impl_foldl___redArg(x_2, x_52, x_48);
x_54 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_54, 0, x_53);
x_35 = x_54;
goto block_45;
}
}
}
block_34:
{
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_10; 
lean_dec_ref(x_1);
x_10 = !lean_is_exclusive(x_3);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_3, 1);
lean_dec(x_11);
x_12 = lean_ctor_get(x_3, 0);
lean_dec(x_12);
lean_ctor_set(x_3, 1, x_9);
lean_ctor_set(x_3, 0, x_8);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 2);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_14, 0, x_8);
lean_ctor_set(x_14, 1, x_9);
lean_ctor_set(x_14, 2, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_3, 2);
x_17 = lean_ctor_get(x_3, 1);
lean_dec(x_17);
x_18 = lean_ctor_get(x_3, 0);
lean_dec(x_18);
if (lean_obj_tag(x_16) == 0)
{
lean_dec_ref(x_1);
lean_ctor_set(x_3, 2, x_7);
lean_ctor_set(x_3, 1, x_9);
lean_ctor_set(x_3, 0, x_8);
return x_3;
}
else
{
lean_object* x_19; uint8_t x_20; 
x_19 = lean_ctor_get(x_7, 0);
lean_inc(x_19);
lean_dec_ref(x_7);
x_20 = !lean_is_exclusive(x_16);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; 
x_21 = lean_ctor_get(x_16, 0);
x_22 = l_Std_DTreeMap_Internal_Impl_foldl___redArg(x_1, x_21, x_19);
lean_ctor_set(x_16, 0, x_22);
lean_ctor_set(x_3, 1, x_9);
lean_ctor_set(x_3, 0, x_8);
return x_3;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_16, 0);
lean_inc(x_23);
lean_dec(x_16);
x_24 = l_Std_DTreeMap_Internal_Impl_foldl___redArg(x_1, x_23, x_19);
x_25 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_3, 2, x_25);
lean_ctor_set(x_3, 1, x_9);
lean_ctor_set(x_3, 0, x_8);
return x_3;
}
}
}
else
{
lean_object* x_26; 
x_26 = lean_ctor_get(x_3, 2);
lean_inc(x_26);
lean_dec(x_3);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; 
lean_dec_ref(x_1);
x_27 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_27, 0, x_8);
lean_ctor_set(x_27, 1, x_9);
lean_ctor_set(x_27, 2, x_7);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_28 = lean_ctor_get(x_7, 0);
lean_inc(x_28);
lean_dec_ref(x_7);
x_29 = lean_ctor_get(x_26, 0);
lean_inc(x_29);
if (lean_is_exclusive(x_26)) {
 lean_ctor_release(x_26, 0);
 x_30 = x_26;
} else {
 lean_dec_ref(x_26);
 x_30 = lean_box(0);
}
x_31 = l_Std_DTreeMap_Internal_Impl_foldl___redArg(x_1, x_29, x_28);
if (lean_is_scalar(x_30)) {
 x_32 = lean_alloc_ctor(1, 1, 0);
} else {
 x_32 = x_30;
}
lean_ctor_set(x_32, 0, x_31);
x_33 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_33, 0, x_8);
lean_ctor_set(x_33, 1, x_9);
lean_ctor_set(x_33, 2, x_32);
return x_33;
}
}
}
}
block_45:
{
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_36; 
x_36 = lean_ctor_get(x_3, 1);
lean_inc(x_36);
x_8 = x_35;
x_9 = x_36;
goto block_34;
}
else
{
lean_object* x_37; 
x_37 = lean_ctor_get(x_3, 1);
lean_inc(x_37);
if (lean_obj_tag(x_37) == 0)
{
x_8 = x_35;
x_9 = x_6;
goto block_34;
}
else
{
lean_object* x_38; uint8_t x_39; 
x_38 = lean_ctor_get(x_6, 0);
lean_inc(x_38);
lean_dec_ref(x_6);
x_39 = !lean_is_exclusive(x_37);
if (x_39 == 0)
{
lean_object* x_40; lean_object* x_41; 
x_40 = lean_ctor_get(x_37, 0);
x_41 = l_Array_append___redArg(x_40, x_38);
lean_dec(x_38);
lean_ctor_set(x_37, 0, x_41);
x_8 = x_35;
x_9 = x_37;
goto block_34;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_42 = lean_ctor_get(x_37, 0);
lean_inc(x_42);
lean_dec(x_37);
x_43 = l_Array_append___redArg(x_42, x_38);
lean_dec(x_38);
x_44 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_44, 0, x_43);
x_8 = x_35;
x_9 = x_44;
goto block_34;
}
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instAppend___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___lam__0___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_instAppend() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_WorkspaceEdit_instAppend___closed__0;
x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_WorkspaceEdit_instAppend___lam__0), 4, 1);
lean_closure_set(x_2, 0, x_1);
x_3 = lean_alloc_closure((void*)(l_Lean_Lsp_WorkspaceEdit_instAppend___lam__3), 4, 1);
lean_closure_set(x_3, 0, x_1);
x_4 = lean_alloc_closure((void*)(l_Lean_Lsp_WorkspaceEdit_instAppend___lam__4), 4, 2);
lean_closure_set(x_4, 0, x_3);
lean_closure_set(x_4, 1, x_2);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_3, 0, x_1);
x_4 = l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit___closed__0;
x_5 = lean_array_push(x_4, x_3);
x_6 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_6, 0, x_5);
x_7 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_7, 0, x_2);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextEdit(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0___closed__0;
x_4 = lean_array_push(x_3, x_2);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_4);
x_6 = l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit(x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("edit", 4, 4);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0;
x_6 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_5, x_3);
x_7 = l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0;
x_8 = l_Lean_Lsp_instToJsonWorkspaceEdit_toJson(x_4);
lean_ctor_set(x_1, 1, x_8);
lean_ctor_set(x_1, 0, x_7);
x_9 = lean_box(0);
x_10 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_9);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_6);
lean_ctor_set(x_12, 1, x_11);
x_13 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_14 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_12, x_13);
x_15 = l_Lean_Json_mkObj(x_14);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_16 = lean_ctor_get(x_1, 0);
x_17 = lean_ctor_get(x_1, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_1);
x_18 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0;
x_19 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_18, x_16);
x_20 = l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0;
x_21 = l_Lean_Lsp_instToJsonWorkspaceEdit_toJson(x_17);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = lean_box(0);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_23);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_19);
lean_ctor_set(x_26, 1, x_25);
x_27 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_28 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_26, x_27);
x_29 = l_Lean_Json_mkObj(x_28);
return x_29;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ApplyWorkspaceEditParams", 24, 24);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("label\?", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__10() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__9;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__11;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0;
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__12;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__12;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_15);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_17, 0, x_31);
return x_17;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_17, 0);
lean_inc(x_32);
lean_dec(x_17);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_15);
lean_ctor_set(x_33, 1, x_32);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_33);
return x_34;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("languageId", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("text", 4, 4);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentItem_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 3);
lean_inc_ref(x_5);
lean_dec_ref(x_1);
x_6 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
x_7 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_7, 0, x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_box(0);
x_10 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__0;
x_12 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_12, 0, x_3);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_9);
x_15 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0;
x_16 = l_Lean_JsonNumber_fromNat(x_4);
x_17 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_17, 0, x_16);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_15);
lean_ctor_set(x_18, 1, x_17);
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_9);
x_20 = l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__1;
x_21 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_21, 0, x_5);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_9);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_9);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_19);
lean_ctor_set(x_25, 1, x_24);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_14);
lean_ctor_set(x_26, 1, x_25);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_10);
lean_ctor_set(x_27, 1, x_26);
x_28 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_29 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_27, x_28);
x_30 = l_Lean_Json_mkObj(x_29);
return x_30;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentItem___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonTextDocumentItem_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentItem() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentItem___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentItem_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Json_getNat_x3f(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TextDocumentItem", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__7() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__6;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__7;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__8;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__11() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__10;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__11;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__12;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__15() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__14;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__15;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__16;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonLocation_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__5;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__5;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__0;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__9;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__9;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0;
lean_inc(x_1);
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentItem_fromJson_spec__0(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__13;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__13;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_31, 0);
lean_inc(x_43);
lean_dec_ref(x_31);
x_44 = l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__1;
x_45 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_44);
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_46; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_46 = !lean_is_exclusive(x_45);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_45, 0);
x_48 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__17;
x_49 = lean_string_append(x_48, x_47);
lean_dec(x_47);
lean_ctor_set(x_45, 0, x_49);
return x_45;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_50 = lean_ctor_get(x_45, 0);
lean_inc(x_50);
lean_dec(x_45);
x_51 = l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__17;
x_52 = lean_string_append(x_51, x_50);
lean_dec(x_50);
x_53 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_53, 0, x_52);
return x_53;
}
}
else
{
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_54; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_54 = !lean_is_exclusive(x_45);
if (x_54 == 0)
{
lean_ctor_set_tag(x_45, 0);
return x_45;
}
else
{
lean_object* x_55; lean_object* x_56; 
x_55 = lean_ctor_get(x_45, 0);
lean_inc(x_55);
lean_dec(x_45);
x_56 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_56, 0, x_55);
return x_56;
}
}
else
{
uint8_t x_57; 
x_57 = !lean_is_exclusive(x_45);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; 
x_58 = lean_ctor_get(x_45, 0);
x_59 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_59, 0, x_15);
lean_ctor_set(x_59, 1, x_29);
lean_ctor_set(x_59, 2, x_43);
lean_ctor_set(x_59, 3, x_58);
lean_ctor_set(x_45, 0, x_59);
return x_45;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_60 = lean_ctor_get(x_45, 0);
lean_inc(x_60);
lean_dec(x_45);
x_61 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_61, 0, x_15);
lean_ctor_set(x_61, 1, x_29);
lean_ctor_set(x_61, 2, x_43);
lean_ctor_set(x_61, 3, x_60);
x_62 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_62, 0, x_61);
return x_62;
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentItem_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentItem_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentItem() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentItem___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("position", 8, 8);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0;
x_6 = l_Lean_Lsp_instToJsonTextDocumentIdentifier_toJson(x_3);
lean_ctor_set(x_1, 1, x_6);
lean_ctor_set(x_1, 0, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0;
x_10 = l_Lean_Lsp_instToJsonPosition_toJson(x_4);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_8);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_16 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_14, x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_18 = lean_ctor_get(x_1, 0);
x_19 = lean_ctor_get(x_1, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_1);
x_20 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0;
x_21 = l_Lean_Lsp_instToJsonTextDocumentIdentifier_toJson(x_18);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = lean_box(0);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0;
x_26 = l_Lean_Lsp_instToJsonPosition_toJson(x_19);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_23);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_23);
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_24);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_32 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_30, x_31);
x_33 = l_Lean_Json_mkObj(x_32);
return x_33;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Lsp_instFromJsonPosition_fromJson(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TextDocumentPositionParams", 26, 26);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__7() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__6;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__7;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__8;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__5;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__5;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0;
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__1(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__9;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__9;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_15);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_17, 0, x_31);
return x_17;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_17, 0);
lean_inc(x_32);
lean_dec(x_17);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_15);
lean_ctor_set(x_33, 1, x_32);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_33);
return x_34;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson_spec__1(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_3);
lean_dec_ref(x_1);
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
lean_dec_ref(x_2);
x_6 = l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0___closed__0;
x_7 = lean_string_append(x_3, x_6);
x_8 = l_Nat_reprFast(x_4);
x_9 = lean_string_append(x_7, x_8);
lean_dec_ref(x_8);
x_10 = lean_string_append(x_9, x_6);
x_11 = l_Nat_reprFast(x_5);
x_12 = lean_string_append(x_10, x_11);
lean_dec_ref(x_11);
return x_12;
}
}
static lean_object* _init_l_Lean_Lsp_instToStringTextDocumentPositionParams() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("language", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("scheme", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("pattern", 7, 7);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDocumentFilter_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec_ref(x_1);
x_5 = l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__0;
x_6 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_5, x_2);
x_7 = l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__1;
x_8 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_7, x_3);
x_9 = l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__2;
x_10 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_9, x_4);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_8);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_6);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_16 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_14, x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonDocumentFilter_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentFilter() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonDocumentFilter___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("DocumentFilter", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("language\?", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("scheme\?", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__9;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__11() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__10;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__11;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__12;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("pattern\?", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__14;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__16() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__15;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__16;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__17;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDocumentFilter_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__1;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__13;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__13;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__2;
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__18;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__18;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
uint8_t x_43; 
x_43 = !lean_is_exclusive(x_31);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; 
x_44 = lean_ctor_get(x_31, 0);
x_45 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_45, 0, x_15);
lean_ctor_set(x_45, 1, x_29);
lean_ctor_set(x_45, 2, x_44);
lean_ctor_set(x_31, 0, x_45);
return x_31;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_31, 0);
lean_inc(x_46);
lean_dec(x_31);
x_47 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_47, 0, x_15);
lean_ctor_set(x_47, 1, x_29);
lean_ctor_set(x_47, 2, x_46);
x_48 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_48, 0, x_47);
return x_48;
}
}
}
}
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentFilter() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentSelector___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonDocumentFilter___closed__0;
x_2 = lean_alloc_closure((void*)(l_Array_fromJson_x3f), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonDocumentSelector() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonDocumentSelector___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentSelector___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonDocumentFilter___closed__0;
x_2 = lean_alloc_closure((void*)(l_Array_toJson), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonDocumentSelector() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonDocumentSelector___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("id", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_2 = l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson___closed__0;
x_3 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_2, x_1);
x_4 = lean_box(0);
x_5 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
x_6 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_7 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_5, x_6);
x_8 = l_Lean_Json_mkObj(x_7);
return x_8;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("StaticRegistrationOptions", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("id\?", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson___closed__0;
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
x_8 = l_Lean_Lsp_instToJsonDocumentFilter_toJson(x_5);
x_9 = 1;
x_10 = lean_usize_add(x_2, x_9);
x_11 = lean_array_uset(x_7, x_2, x_8);
x_2 = x_10;
x_3 = x_11;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_array_size(x_1);
x_3 = 0;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0_spec__0(x_2, x_3, x_1);
x_5 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l_Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_1);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("documentSelector", 16, 16);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_2 = l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson___closed__0;
x_3 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0(x_2, x_1);
x_4 = lean_box(0);
x_5 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
x_6 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_7 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_5, x_6);
x_8 = l_Lean_Json_mkObj(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Json_opt___at___00Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson_spec__0_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__0;
return x_1;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_array_uget(x_3, x_2);
x_7 = l_Lean_Lsp_instFromJsonDocumentFilter_fromJson(x_6);
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
lean_dec_ref(x_3);
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
return x_7;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
x_11 = lean_ctor_get(x_7, 0);
lean_inc(x_11);
lean_dec_ref(x_7);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_array_uset(x_3, x_2, x_12);
x_14 = 1;
x_15 = lean_usize_add(x_2, x_14);
x_16 = lean_array_uset(x_13, x_2, x_11);
x_2 = x_15;
x_3 = x_16;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 4)
{
lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_array_size(x_2);
x_4 = 0;
x_5 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0_spec__0(x_3, x_4, x_2);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_6 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0;
x_7 = lean_unsigned_to_nat(80u);
x_8 = l_Lean_Json_pretty(x_1, x_7);
x_9 = lean_string_append(x_6, x_8);
lean_dec_ref(x_8);
x_10 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1;
x_11 = lean_string_append(x_9, x_10);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TextDocumentRegistrationOptions", 31, 31);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("documentSelector\?", 17, 17);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson___closed__0;
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorIdx(uint8_t x_1) {
_start:
{
if (x_1 == 0)
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
else
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorIdx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Lsp_MarkupKind_ctorIdx(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_toCtorIdx(uint8_t x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_MarkupKind_ctorIdx(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_toCtorIdx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Lsp_MarkupKind_toCtorIdx(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorElim(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_inc(x_5);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorElim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_3);
x_7 = l_Lean_Lsp_MarkupKind_ctorElim(x_1, x_2, x_6, x_4, x_5);
lean_dec(x_5);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ctorElim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_MarkupKind_ctorElim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_plaintext_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_plaintext_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_plaintext_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_Lsp_MarkupKind_plaintext_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_plaintext_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_MarkupKind_plaintext_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_markdown_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_markdown_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_markdown_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_Lsp_MarkupKind_markdown_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_markdown_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_MarkupKind_markdown_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___redArg___lam__0(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___redArg___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_MarkupKind_noConfusion___redArg___lam__0(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___redArg(uint8_t x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; 
x_3 = l_Lean_Lsp_MarkupKind_ctorIdx(x_1);
x_4 = l_Lean_Lsp_MarkupKind_ctorIdx(x_2);
x_5 = lean_nat_dec_eq(x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
x_6 = lean_alloc_closure((void*)(l_Lean_Lsp_MarkupKind_noConfusion___redArg___lam__0___boxed), 1, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Lsp_MarkupKind_noConfusion___redArg(x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; uint8_t x_6; lean_object* x_7; 
x_5 = lean_unbox(x_2);
x_6 = lean_unbox(x_3);
x_7 = l_Lean_Lsp_MarkupKind_noConfusion(x_1, x_5, x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_noConfusion___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; lean_object* x_5; 
x_3 = lean_unbox(x_1);
x_4 = lean_unbox(x_2);
x_5 = l_Lean_Lsp_MarkupKind_noConfusion___redArg(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT uint8_t l_Lean_Lsp_MarkupKind_ofNat(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_nat_dec_le(x_1, x_2);
if (x_3 == 0)
{
uint8_t x_4; 
x_4 = 1;
return x_4;
}
else
{
uint8_t x_5; 
x_5 = 0;
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_MarkupKind_ofNat___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_MarkupKind_ofNat(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lean_Lsp_instDecidableEqMarkupKind(uint8_t x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = l_Lean_Lsp_MarkupKind_ctorIdx(x_1);
x_4 = l_Lean_Lsp_MarkupKind_ctorIdx(x_2);
x_5 = lean_nat_dec_eq(x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instDecidableEqMarkupKind___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; 
x_3 = lean_unbox(x_1);
x_4 = lean_unbox(x_2);
x_5 = l_Lean_Lsp_instDecidableEqMarkupKind(x_3, x_4);
x_6 = lean_box(x_5);
return x_6;
}
}
LEAN_EXPORT uint64_t l_Lean_Lsp_instHashableMarkupKind_hash(uint8_t x_1) {
_start:
{
if (x_1 == 0)
{
uint64_t x_2; 
x_2 = 0;
return x_2;
}
else
{
uint64_t x_3; 
x_3 = 1;
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instHashableMarkupKind_hash___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; uint64_t x_3; lean_object* x_4; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Lsp_instHashableMarkupKind_hash(x_2);
x_4 = lean_box_uint64(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instHashableMarkupKind___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instHashableMarkupKind_hash___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instHashableMarkupKind() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instHashableMarkupKind___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unknown MarkupKind", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("plaintext", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("markdown", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__4() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 0;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 3)
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = lean_ctor_get(x_1, 0);
x_5 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__2;
x_6 = lean_string_dec_eq(x_4, x_5);
if (x_6 == 0)
{
lean_object* x_7; uint8_t x_8; 
x_7 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__3;
x_8 = lean_string_dec_eq(x_4, x_7);
if (x_8 == 0)
{
goto block_3;
}
else
{
lean_object* x_9; 
x_9 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__4;
return x_9;
}
}
else
{
lean_object* x_10; 
x_10 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__5;
return x_10;
}
}
else
{
goto block_3;
}
block_3:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__1;
return x_2;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupKind___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupKind() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonMarkupKind___lam__0___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__2;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind___lam__0(uint8_t x_1) {
_start:
{
if (x_1 == 0)
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__1;
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupKind___lam__0___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Lsp_instToJsonMarkupKind___lam__0(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonMarkupKind() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonMarkupKind___lam__0___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupContent_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
x_3 = lean_ctor_get(x_1, 0);
x_4 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
if (x_2 == 0)
{
lean_object* x_19; 
x_19 = l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__0;
x_5 = x_19;
goto block_18;
}
else
{
lean_object* x_20; 
x_20 = l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__1;
x_5 = x_20;
goto block_18;
}
block_18:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0;
lean_inc_ref(x_3);
x_10 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_10, 0, x_3);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_8);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_16 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_14, x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonMarkupContent_toJson___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Lsp_instToJsonMarkupContent_toJson(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonMarkupContent___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonMarkupContent_toJson___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonMarkupContent() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonMarkupContent___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonMarkupContent_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Json_getObjValD(x_1, x_2);
if (lean_obj_tag(x_5) == 3)
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_6);
lean_dec_ref(x_5);
x_7 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__2;
x_8 = lean_string_dec_eq(x_6, x_7);
if (x_8 == 0)
{
lean_object* x_9; uint8_t x_10; 
x_9 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__3;
x_10 = lean_string_dec_eq(x_6, x_9);
lean_dec_ref(x_6);
if (x_10 == 0)
{
goto block_4;
}
else
{
lean_object* x_11; 
x_11 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__4;
return x_11;
}
}
else
{
lean_object* x_12; 
lean_dec_ref(x_6);
x_12 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__5;
return x_12;
}
}
else
{
lean_dec(x_5);
goto block_4;
}
block_4:
{
lean_object* x_3; 
x_3 = l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__1;
return x_3;
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MarkupContent", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__4;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__8;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonMarkupContent_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonMarkupContent_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__7;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__7;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0;
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocation_fromJson_spec__0(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__9;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__9;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; uint8_t x_32; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(x_31, 0, x_30);
x_32 = lean_unbox(x_15);
lean_dec(x_15);
lean_ctor_set_uint8(x_31, sizeof(void*)*1, x_32);
lean_ctor_set(x_17, 0, x_31);
return x_17;
}
else
{
lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; 
x_33 = lean_ctor_get(x_17, 0);
lean_inc(x_33);
lean_dec(x_17);
x_34 = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(x_34, 0, x_33);
x_35 = lean_unbox(x_15);
lean_dec(x_15);
lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_35);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_34);
return x_36;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonMarkupContent_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonMarkupContent_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonMarkupContent_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonMarkupContent() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonMarkupContent___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_Lsp_instDecidableEqMarkupContent_decEq(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; uint8_t x_7; 
x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_ctor_get_uint8(x_2, sizeof(void*)*1);
x_6 = lean_ctor_get(x_2, 0);
x_7 = l_Lean_Lsp_instDecidableEqMarkupKind(x_3, x_5);
if (x_7 == 0)
{
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_string_dec_eq(x_4, x_6);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instDecidableEqMarkupContent_decEq___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_Lsp_instDecidableEqMarkupContent_decEq(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_Lsp_instDecidableEqMarkupContent(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_Lean_Lsp_instDecidableEqMarkupContent_decEq(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instDecidableEqMarkupContent___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_Lsp_instDecidableEqMarkupContent(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint64_t l_Lean_Lsp_instHashableMarkupContent_hash(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; uint64_t x_4; uint64_t x_5; uint64_t x_6; uint64_t x_7; uint64_t x_8; 
x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
x_3 = lean_ctor_get(x_1, 0);
x_4 = 0;
x_5 = l_Lean_Lsp_instHashableMarkupKind_hash(x_2);
x_6 = lean_uint64_mix_hash(x_4, x_5);
x_7 = lean_string_hash(x_3);
x_8 = lean_uint64_mix_hash(x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instHashableMarkupContent_hash___boxed(lean_object* x_1) {
_start:
{
uint64_t x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instHashableMarkupContent_hash(x_1);
lean_dec_ref(x_1);
x_3 = lean_box_uint64(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instHashableMarkupContent___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instHashableMarkupContent_hash___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instHashableMarkupContent() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instHashableMarkupContent___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("token", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_id___boxed), 2, 1);
lean_closure_set(x_1, 0, lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams_toJson___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_ctor_get(x_2, 1);
x_6 = l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__0;
x_7 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_2, 1, x_7);
lean_ctor_set(x_2, 0, x_6);
x_8 = lean_box(0);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_2);
lean_ctor_set(x_9, 1, x_8);
x_10 = l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0;
x_11 = lean_apply_1(x_1, x_5);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_8);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_8);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_9);
lean_ctor_set(x_15, 1, x_14);
x_16 = l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__1;
x_17 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_18 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go(lean_box(0), lean_box(0), x_16, x_15, x_17);
x_19 = l_Lean_Json_mkObj(x_18);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_20 = lean_ctor_get(x_2, 0);
x_21 = lean_ctor_get(x_2, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_2);
x_22 = l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__0;
x_23 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_23, 0, x_20);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = lean_box(0);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
x_27 = l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0;
x_28 = lean_apply_1(x_1, x_21);
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set(x_30, 1, x_25);
x_31 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_25);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_26);
lean_ctor_set(x_32, 1, x_31);
x_33 = l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__1;
x_34 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_35 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go(lean_box(0), lean_box(0), x_33, x_32, x_34);
x_36 = l_Lean_Json_mkObj(x_35);
return x_36;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams_toJson(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Lsp_instToJsonProgressParams_toJson___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonProgressParams_toJson), 3, 2);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonProgressParams___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonProgressParams_toJson), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("message", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("cancellable", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("percentage", 10, 10);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*3);
x_5 = lean_ctor_get(x_1, 2);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_7 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_7, 0, x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_box(0);
x_10 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0;
x_12 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_11, x_3);
x_13 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__1;
x_14 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_14, 0, x_4);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_9);
x_17 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__2;
x_18 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson_spec__0(x_17, x_5);
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_9);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_16);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_12);
lean_ctor_set(x_21, 1, x_20);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_10);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_24 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_22, x_23);
x_25 = l_Lean_Json_mkObj(x_24);
return x_25;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressBegin_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get_uint8(x_3, sizeof(void*)*3);
x_8 = lean_ctor_get(x_3, 2);
lean_inc(x_8);
lean_dec_ref(x_3);
x_9 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_10 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_10, 0, x_5);
lean_ctor_set(x_1, 1, x_10);
lean_ctor_set(x_1, 0, x_9);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_1);
lean_ctor_set(x_12, 1, x_11);
x_13 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0;
x_14 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_13, x_6);
x_15 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__1;
x_16 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_16, 0, x_7);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_11);
x_19 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__2;
x_20 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson_spec__0(x_19, x_8);
x_21 = l_Lean_Lsp_instToJsonCommand_toJson___closed__0;
x_22 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_22, 0, x_4);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_11);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_11);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_20);
lean_ctor_set(x_26, 1, x_25);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_18);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_14);
lean_ctor_set(x_28, 1, x_27);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_12);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_31 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_29, x_30);
x_32 = l_Lean_Json_mkObj(x_31);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; 
x_33 = lean_ctor_get(x_1, 0);
x_34 = lean_ctor_get(x_1, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_1);
x_35 = lean_ctor_get(x_33, 0);
lean_inc_ref(x_35);
x_36 = lean_ctor_get(x_33, 1);
lean_inc(x_36);
x_37 = lean_ctor_get_uint8(x_33, sizeof(void*)*3);
x_38 = lean_ctor_get(x_33, 2);
lean_inc(x_38);
lean_dec_ref(x_33);
x_39 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_40 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_40, 0, x_35);
x_41 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
x_42 = lean_box(0);
x_43 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_43, 0, x_41);
lean_ctor_set(x_43, 1, x_42);
x_44 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0;
x_45 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_44, x_36);
x_46 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__1;
x_47 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_47, 0, x_37);
x_48 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_48, 0, x_46);
lean_ctor_set(x_48, 1, x_47);
x_49 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_49, 0, x_48);
lean_ctor_set(x_49, 1, x_42);
x_50 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__2;
x_51 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson_spec__0(x_50, x_38);
x_52 = l_Lean_Lsp_instToJsonCommand_toJson___closed__0;
x_53 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_53, 0, x_34);
x_54 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_54, 0, x_52);
lean_ctor_set(x_54, 1, x_53);
x_55 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_55, 0, x_54);
lean_ctor_set(x_55, 1, x_42);
x_56 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_56, 0, x_55);
lean_ctor_set(x_56, 1, x_42);
x_57 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_57, 0, x_51);
lean_ctor_set(x_57, 1, x_56);
x_58 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_58, 0, x_49);
lean_ctor_set(x_58, 1, x_57);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_45);
lean_ctor_set(x_59, 1, x_58);
x_60 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_60, 0, x_43);
lean_ctor_set(x_60, 1, x_59);
x_61 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_62 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_60, x_61);
x_63 = l_Lean_Json_mkObj(x_62);
return x_63;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonWorkDoneProgressBegin_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressEnd_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_6 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_6, 0, x_3);
lean_ctor_set(x_1, 1, x_6);
lean_ctor_set(x_1, 0, x_5);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0;
x_10 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_9, x_4);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_7);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_8);
lean_ctor_set(x_12, 1, x_11);
x_13 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_14 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_12, x_13);
x_15 = l_Lean_Json_mkObj(x_14);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_16 = lean_ctor_get(x_1, 0);
x_17 = lean_ctor_get(x_1, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_1);
x_18 = l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0;
x_19 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_19, 0, x_16);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_box(0);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0;
x_24 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_23, x_17);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_21);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_22);
lean_ctor_set(x_26, 1, x_25);
x_27 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_28 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_26, x_27);
x_29 = l_Lean_Json_mkObj(x_28);
return x_29;
}
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonWorkDoneProgressEnd_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("workDoneToken", 13, 13);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_2 = l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson___closed__0;
x_3 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_2, x_1);
x_4 = lean_box(0);
x_5 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
x_6 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_7 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_5, x_6);
x_8 = l_Lean_Json_mkObj(x_7);
return x_8;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("WorkDoneProgressParams", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("workDoneToken\?", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson___closed__0;
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonPartialResultParams_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("partialResultToken", 18, 18);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonPartialResultParams_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_2 = l_Lean_Lsp_instToJsonPartialResultParams_toJson___closed__0;
x_3 = l_Lean_Json_opt___at___00Lean_Lsp_instToJsonTextEdit_toJson_spec__1(x_2, x_1);
x_4 = lean_box(0);
x_5 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
x_6 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_7 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_5, x_6);
x_8 = l_Lean_Json_mkObj(x_7);
return x_8;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonPartialResultParams___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonPartialResultParams_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonPartialResultParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonPartialResultParams___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("PartialResultParams", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("partialResultToken\?", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonPartialResultParams_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonPartialResultParams_toJson___closed__0;
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__2(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonPartialResultParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonPartialResultParams___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("workDoneProgress", 16, 16);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson(uint8_t x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___closed__0;
x_3 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_3, 0, x_1);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_2);
lean_ctor_set(x_4, 1, x_3);
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
x_8 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_9 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_7, x_8);
x_10 = l_Lean_Json_mkObj(x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("WorkDoneProgressOptions", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__0;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__4;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___closed__0;
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonChangeAnnotation_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__7;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__7;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_array_uget(x_3, x_2);
x_7 = l_Lean_Json_getStr_x3f(x_6);
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
lean_dec_ref(x_3);
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
return x_7;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
x_11 = lean_ctor_get(x_7, 0);
lean_inc(x_11);
lean_dec_ref(x_7);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_array_uset(x_3, x_2, x_12);
x_14 = 1;
x_15 = lean_usize_add(x_2, x_14);
x_16 = lean_array_uset(x_13, x_2, x_11);
x_2 = x_15;
x_3 = x_16;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 4)
{
lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = lean_array_size(x_2);
x_4 = 0;
x_5 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0_spec__0(x_3, x_4, x_2);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_6 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0;
x_7 = lean_unsigned_to_nat(80u);
x_8 = l_Lean_Json_pretty(x_1, x_7);
x_9 = lean_string_append(x_6, x_8);
lean_dec_ref(x_8);
x_10 = l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1;
x_11 = lean_string_append(x_9, x_10);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("properties", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ResolveSupport", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__1;
x_2 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1;
x_3 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__3() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__2;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5;
x_2 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__5;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__6;
x_2 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10;
x_2 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__7;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonResolveSupport_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__0;
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_3);
if (x_15 == 0)
{
return x_3;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonResolveSupport_fromJson_spec__0_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instFromJsonResolveSupport_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instFromJsonResolveSupport() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instFromJsonResolveSupport___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
x_8 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_8, 0, x_5);
x_9 = 1;
x_10 = lean_usize_add(x_2, x_9);
x_11 = lean_array_uset(x_7, x_2, x_8);
x_2 = x_10;
x_3 = x_11;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0(lean_object* x_1) {
_start:
{
size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_array_size(x_1);
x_3 = 0;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0_spec__0(x_2, x_3, x_1);
x_5 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonResolveSupport_toJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__0;
x_3 = l_Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0(x_1);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_2);
lean_ctor_set(x_4, 1, x_3);
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
x_8 = l_Lean_Lsp_instToJsonLocation_toJson___closed__2;
x_9 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_Lsp_instToJsonLocation_toJson_spec__0(x_7, x_8);
x_10 = l_Lean_Json_mkObj(x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Array_toJson___at___00Lean_Lsp_instToJsonResolveSupport_toJson_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonResolveSupport___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_instToJsonResolveSupport_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Lsp_instToJsonResolveSupport() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Lsp_instToJsonResolveSupport___closed__0;
return x_1;
}
}
lean_object* initialize_Lean_Data_Json(uint8_t builtin);
lean_object* initialize_Lean_Data_Lsp_BasicAux(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Data_Lsp_Basic(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Data_Json(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Data_Lsp_BasicAux(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Lsp_instInhabitedLocation_default___closed__0 = _init_l_Lean_Lsp_instInhabitedLocation_default___closed__0();
lean_mark_persistent(l_Lean_Lsp_instInhabitedLocation_default___closed__0);
l_Lean_Lsp_instInhabitedLocation_default___closed__1 = _init_l_Lean_Lsp_instInhabitedLocation_default___closed__1();
lean_mark_persistent(l_Lean_Lsp_instInhabitedLocation_default___closed__1);
l_Lean_Lsp_instInhabitedLocation_default___closed__2 = _init_l_Lean_Lsp_instInhabitedLocation_default___closed__2();
lean_mark_persistent(l_Lean_Lsp_instInhabitedLocation_default___closed__2);
l_Lean_Lsp_instInhabitedLocation_default = _init_l_Lean_Lsp_instInhabitedLocation_default();
lean_mark_persistent(l_Lean_Lsp_instInhabitedLocation_default);
l_Lean_Lsp_instInhabitedLocation = _init_l_Lean_Lsp_instInhabitedLocation();
lean_mark_persistent(l_Lean_Lsp_instInhabitedLocation);
l_Lean_Lsp_instBEqLocation___closed__0 = _init_l_Lean_Lsp_instBEqLocation___closed__0();
lean_mark_persistent(l_Lean_Lsp_instBEqLocation___closed__0);
l_Lean_Lsp_instBEqLocation = _init_l_Lean_Lsp_instBEqLocation();
lean_mark_persistent(l_Lean_Lsp_instBEqLocation);
l_Lean_Lsp_instToJsonLocation_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonLocation_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocation_toJson___closed__0);
l_Lean_Lsp_instToJsonLocation_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonLocation_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocation_toJson___closed__1);
l_Lean_Lsp_instToJsonLocation_toJson___closed__2 = _init_l_Lean_Lsp_instToJsonLocation_toJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocation_toJson___closed__2);
l_Lean_Lsp_instToJsonLocation___closed__0 = _init_l_Lean_Lsp_instToJsonLocation___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocation___closed__0);
l_Lean_Lsp_instToJsonLocation = _init_l_Lean_Lsp_instToJsonLocation();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocation);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__0);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__1);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__2);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__3);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__4);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__5);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__6);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__7);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__8);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__9);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__10);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__11);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__12);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__13);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__14);
l_Lean_Lsp_instFromJsonLocation_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonLocation_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation_fromJson___closed__15);
l_Lean_Lsp_instFromJsonLocation___closed__0 = _init_l_Lean_Lsp_instFromJsonLocation___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation___closed__0);
l_Lean_Lsp_instFromJsonLocation = _init_l_Lean_Lsp_instFromJsonLocation();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocation);
l_Lean_Lsp_instOrdLocation___closed__0 = _init_l_Lean_Lsp_instOrdLocation___closed__0();
lean_mark_persistent(l_Lean_Lsp_instOrdLocation___closed__0);
l_Lean_Lsp_instOrdLocation = _init_l_Lean_Lsp_instOrdLocation();
lean_mark_persistent(l_Lean_Lsp_instOrdLocation);
l_Lean_Lsp_instToJsonLocationLink_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonLocationLink_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink_toJson___closed__0);
l_Lean_Lsp_instToJsonLocationLink_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonLocationLink_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink_toJson___closed__1);
l_Lean_Lsp_instToJsonLocationLink_toJson___closed__2 = _init_l_Lean_Lsp_instToJsonLocationLink_toJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink_toJson___closed__2);
l_Lean_Lsp_instToJsonLocationLink_toJson___closed__3 = _init_l_Lean_Lsp_instToJsonLocationLink_toJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink_toJson___closed__3);
l_Lean_Lsp_instToJsonLocationLink___closed__0 = _init_l_Lean_Lsp_instToJsonLocationLink___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink___closed__0);
l_Lean_Lsp_instToJsonLocationLink = _init_l_Lean_Lsp_instToJsonLocationLink();
lean_mark_persistent(l_Lean_Lsp_instToJsonLocationLink);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonLocationLink_fromJson_spec__0_spec__0___closed__0);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__0);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__1);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__2);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__3);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__4);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__5);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__6);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__7);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__8);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__9);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__10);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__11);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__12);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__13);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__14);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__15);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__16 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__16();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__16);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__17 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__17();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__17);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__18 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__18();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__18);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__19 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__19();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__19);
l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__20 = _init_l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__20();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink_fromJson___closed__20);
l_Lean_Lsp_instFromJsonLocationLink___closed__0 = _init_l_Lean_Lsp_instFromJsonLocationLink___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink___closed__0);
l_Lean_Lsp_instFromJsonLocationLink = _init_l_Lean_Lsp_instFromJsonLocationLink();
lean_mark_persistent(l_Lean_Lsp_instFromJsonLocationLink);
l_Lean_Lsp_instToJsonCommand_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonCommand_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonCommand_toJson___closed__0);
l_Lean_Lsp_instToJsonCommand_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonCommand_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonCommand_toJson___closed__1);
l_Lean_Lsp_instToJsonCommand_toJson___closed__2 = _init_l_Lean_Lsp_instToJsonCommand_toJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonCommand_toJson___closed__2);
l_Lean_Lsp_instToJsonCommand___closed__0 = _init_l_Lean_Lsp_instToJsonCommand___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonCommand___closed__0);
l_Lean_Lsp_instToJsonCommand = _init_l_Lean_Lsp_instToJsonCommand();
lean_mark_persistent(l_Lean_Lsp_instToJsonCommand);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0___closed__0);
l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0 = _init_l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__0);
l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1 = _init_l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1();
lean_mark_persistent(l_Array_fromJson_x3f___at___00Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCommand_fromJson_spec__0_spec__0_spec__0___closed__1);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__0);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__1);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__2);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__3);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__4);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__5);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__6);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__7);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__8);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__9);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__10);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__11);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__12);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__13);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__14);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__15);
l_Lean_Lsp_instFromJsonCommand_fromJson___closed__16 = _init_l_Lean_Lsp_instFromJsonCommand_fromJson___closed__16();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand_fromJson___closed__16);
l_Lean_Lsp_instFromJsonCommand___closed__0 = _init_l_Lean_Lsp_instFromJsonCommand___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand___closed__0);
l_Lean_Lsp_instFromJsonCommand = _init_l_Lean_Lsp_instFromJsonCommand();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCommand);
l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonSnippetString_toJson___closed__0);
l_Lean_Lsp_instToJsonSnippetString___closed__0 = _init_l_Lean_Lsp_instToJsonSnippetString___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonSnippetString___closed__0);
l_Lean_Lsp_instToJsonSnippetString = _init_l_Lean_Lsp_instToJsonSnippetString();
lean_mark_persistent(l_Lean_Lsp_instToJsonSnippetString);
l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__0);
l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__1);
l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__2);
l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__3);
l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__4);
l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__5);
l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__6);
l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString_fromJson___closed__7);
l_Lean_Lsp_instFromJsonSnippetString___closed__0 = _init_l_Lean_Lsp_instFromJsonSnippetString___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString___closed__0);
l_Lean_Lsp_instFromJsonSnippetString = _init_l_Lean_Lsp_instFromJsonSnippetString();
lean_mark_persistent(l_Lean_Lsp_instFromJsonSnippetString);
l_Lean_Lsp_instToJsonTextEdit_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonTextEdit_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit_toJson___closed__0);
l_Lean_Lsp_instToJsonTextEdit_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonTextEdit_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit_toJson___closed__1);
l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2 = _init_l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit_toJson___closed__2);
l_Lean_Lsp_instToJsonTextEdit___closed__0 = _init_l_Lean_Lsp_instToJsonTextEdit___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit___closed__0);
l_Lean_Lsp_instToJsonTextEdit = _init_l_Lean_Lsp_instToJsonTextEdit();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextEdit);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextEdit_fromJson_spec__0_spec__0___closed__0);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__0);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__1);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__2);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__3);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__4);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__5);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__6);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__7);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__8);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__9);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__10);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__11);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__12);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__13);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__14);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__15);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__16 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__16();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__16);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__17);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__18 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__18();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__18);
l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__19 = _init_l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__19();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit_fromJson___closed__19);
l_Lean_Lsp_instFromJsonTextEdit___closed__0 = _init_l_Lean_Lsp_instFromJsonTextEdit___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit___closed__0);
l_Lean_Lsp_instFromJsonTextEdit = _init_l_Lean_Lsp_instFromJsonTextEdit();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEdit);
l_Lean_Lsp_instFromJsonTextEditBatch___closed__0 = _init_l_Lean_Lsp_instFromJsonTextEditBatch___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEditBatch___closed__0);
l_Lean_Lsp_instFromJsonTextEditBatch = _init_l_Lean_Lsp_instFromJsonTextEditBatch();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextEditBatch);
l_Lean_Lsp_instToJsonTextEditBatch___closed__0 = _init_l_Lean_Lsp_instToJsonTextEditBatch___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextEditBatch___closed__0);
l_Lean_Lsp_instToJsonTextEditBatch = _init_l_Lean_Lsp_instToJsonTextEditBatch();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextEditBatch);
l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__0 = _init_l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__0();
lean_mark_persistent(l_Lean_Lsp_instEmptyCollectionTextEditBatch___closed__0);
l_Lean_Lsp_instEmptyCollectionTextEditBatch = _init_l_Lean_Lsp_instEmptyCollectionTextEditBatch();
lean_mark_persistent(l_Lean_Lsp_instEmptyCollectionTextEditBatch);
l_Lean_Lsp_instAppendTextEditBatch___closed__0 = _init_l_Lean_Lsp_instAppendTextEditBatch___closed__0();
lean_mark_persistent(l_Lean_Lsp_instAppendTextEditBatch___closed__0);
l_Lean_Lsp_instAppendTextEditBatch = _init_l_Lean_Lsp_instAppendTextEditBatch();
lean_mark_persistent(l_Lean_Lsp_instAppendTextEditBatch);
l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0___closed__0 = _init_l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0___closed__0();
lean_mark_persistent(l_Lean_Lsp_instCoeTextEditTextEditBatch___lam__0___closed__0);
l_Lean_Lsp_instCoeTextEditTextEditBatch = _init_l_Lean_Lsp_instCoeTextEditTextEditBatch();
lean_mark_persistent(l_Lean_Lsp_instCoeTextEditTextEditBatch);
l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentIdentifier___closed__0);
l_Lean_Lsp_instToJsonTextDocumentIdentifier = _init_l_Lean_Lsp_instToJsonTextDocumentIdentifier();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentIdentifier);
l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__1);
l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__2);
l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__3);
l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__4);
l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier_fromJson___closed__5);
l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentIdentifier = _init_l_Lean_Lsp_instFromJsonTextDocumentIdentifier();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentIdentifier);
l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier_toJson___closed__0);
l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__0 = _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier___closed__0);
l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier = _init_l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier();
lean_mark_persistent(l_Lean_Lsp_instToJsonVersionedTextDocumentIdentifier);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson_spec__0_spec__0___closed__0);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__0);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__1);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__2);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__3);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__4);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__5);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__6);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__7);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__8);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__9);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier_fromJson___closed__10);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__0 = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier___closed__0);
l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier = _init_l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier();
lean_mark_persistent(l_Lean_Lsp_instFromJsonVersionedTextDocumentIdentifier);
l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__0);
l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentEdit_toJson___closed__1);
l_Lean_Lsp_instToJsonTextDocumentEdit___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentEdit___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentEdit___closed__0);
l_Lean_Lsp_instToJsonTextDocumentEdit = _init_l_Lean_Lsp_instToJsonTextDocumentEdit();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentEdit);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__1);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__2);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__3);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__4);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__5);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__6);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__7);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__8);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__9);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__10);
l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit_fromJson___closed__11);
l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentEdit = _init_l_Lean_Lsp_instFromJsonTextDocumentEdit();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentEdit);
l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__0);
l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__1);
l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__2 = _init_l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonChangeAnnotation_toJson___closed__2);
l_Lean_Lsp_instToJsonChangeAnnotation___closed__0 = _init_l_Lean_Lsp_instToJsonChangeAnnotation___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonChangeAnnotation___closed__0);
l_Lean_Lsp_instToJsonChangeAnnotation = _init_l_Lean_Lsp_instToJsonChangeAnnotation();
lean_mark_persistent(l_Lean_Lsp_instToJsonChangeAnnotation);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__0);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__1);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__2);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__3);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__4);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__5);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__6);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__7);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__8);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__9);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__10);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__11);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__12);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__13);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__14);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__15);
l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__16 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__16();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation_fromJson___closed__16);
l_Lean_Lsp_instFromJsonChangeAnnotation___closed__0 = _init_l_Lean_Lsp_instFromJsonChangeAnnotation___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation___closed__0);
l_Lean_Lsp_instFromJsonChangeAnnotation = _init_l_Lean_Lsp_instFromJsonChangeAnnotation();
lean_mark_persistent(l_Lean_Lsp_instFromJsonChangeAnnotation);
l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__0 = _init_l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__0);
l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__1 = _init_l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instToJsonOptions_toJson___closed__1);
l_Lean_Lsp_CreateFile_instToJsonOptions___closed__0 = _init_l_Lean_Lsp_CreateFile_instToJsonOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instToJsonOptions___closed__0);
l_Lean_Lsp_CreateFile_instToJsonOptions = _init_l_Lean_Lsp_CreateFile_instToJsonOptions();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instToJsonOptions);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__0 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__0);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__1 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__1);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__2 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__2);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__3 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__3);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__4 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__4);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__5 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__5);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__6 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__6);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__7 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__7);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__8 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__8);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__9 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__9);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__10 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__10);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__11 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__11);
l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__12 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions_fromJson___closed__12);
l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__0 = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions___closed__0);
l_Lean_Lsp_CreateFile_instFromJsonOptions = _init_l_Lean_Lsp_CreateFile_instFromJsonOptions();
lean_mark_persistent(l_Lean_Lsp_CreateFile_instFromJsonOptions);
l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__0 = _init_l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__0);
l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__1 = _init_l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instToJsonOptions_toJson___closed__1);
l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__0 = _init_l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instToJsonOptions___closed__0);
l_Lean_Lsp_DeleteFile_instToJsonOptions = _init_l_Lean_Lsp_DeleteFile_instToJsonOptions();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instToJsonOptions);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__0 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__0);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__1 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__1);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__2 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__2);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__3 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__3);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__4 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__4);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__5 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__5);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__6 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__6);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__7 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__7);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__8 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__8);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__9 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__9);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__10 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__10);
l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__11 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions_fromJson___closed__11);
l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__0 = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions___closed__0);
l_Lean_Lsp_DeleteFile_instFromJsonOptions = _init_l_Lean_Lsp_DeleteFile_instFromJsonOptions();
lean_mark_persistent(l_Lean_Lsp_DeleteFile_instFromJsonOptions);
l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonCreateFile_toJson___closed__0);
l_Lean_Lsp_instToJsonCreateFile___closed__0 = _init_l_Lean_Lsp_instToJsonCreateFile___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonCreateFile___closed__0);
l_Lean_Lsp_instToJsonCreateFile = _init_l_Lean_Lsp_instToJsonCreateFile();
lean_mark_persistent(l_Lean_Lsp_instToJsonCreateFile);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonCreateFile_fromJson_spec__0_spec__0___closed__0);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__0);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__1);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__2);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__3);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__4);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__5);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__6);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__7);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__8);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__9);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__10);
l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile_fromJson___closed__11);
l_Lean_Lsp_instFromJsonCreateFile___closed__0 = _init_l_Lean_Lsp_instFromJsonCreateFile___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile___closed__0);
l_Lean_Lsp_instFromJsonCreateFile = _init_l_Lean_Lsp_instFromJsonCreateFile();
lean_mark_persistent(l_Lean_Lsp_instFromJsonCreateFile);
l_Lean_Lsp_instToJsonRenameFile_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonRenameFile_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonRenameFile_toJson___closed__0);
l_Lean_Lsp_instToJsonRenameFile_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonRenameFile_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonRenameFile_toJson___closed__1);
l_Lean_Lsp_instToJsonRenameFile___closed__0 = _init_l_Lean_Lsp_instToJsonRenameFile___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonRenameFile___closed__0);
l_Lean_Lsp_instToJsonRenameFile = _init_l_Lean_Lsp_instToJsonRenameFile();
lean_mark_persistent(l_Lean_Lsp_instToJsonRenameFile);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__0);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__1);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__2);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__3);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__4);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__5);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__6);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__7);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__8);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__9);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__10);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__11);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__12);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__13);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__14);
l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile_fromJson___closed__15);
l_Lean_Lsp_instFromJsonRenameFile___closed__0 = _init_l_Lean_Lsp_instFromJsonRenameFile___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile___closed__0);
l_Lean_Lsp_instFromJsonRenameFile = _init_l_Lean_Lsp_instFromJsonRenameFile();
lean_mark_persistent(l_Lean_Lsp_instFromJsonRenameFile);
l_Lean_Lsp_instToJsonDeleteFile___closed__0 = _init_l_Lean_Lsp_instToJsonDeleteFile___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonDeleteFile___closed__0);
l_Lean_Lsp_instToJsonDeleteFile = _init_l_Lean_Lsp_instToJsonDeleteFile();
lean_mark_persistent(l_Lean_Lsp_instToJsonDeleteFile);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonDeleteFile_fromJson_spec__0_spec__0___closed__0);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__0);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__1);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__2);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__3);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__4);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__5);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__6);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__7);
l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile_fromJson___closed__8);
l_Lean_Lsp_instFromJsonDeleteFile___closed__0 = _init_l_Lean_Lsp_instFromJsonDeleteFile___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile___closed__0);
l_Lean_Lsp_instFromJsonDeleteFile = _init_l_Lean_Lsp_instFromJsonDeleteFile();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDeleteFile);
l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0 = _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__0);
l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__1 = _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__1);
l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__2 = _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__2);
l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__3 = _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__3();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__3);
l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__4 = _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__4();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__4);
l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__5 = _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__5();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__5);
l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__6 = _init_l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__6();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange___lam__0___closed__6);
l_Lean_Lsp_instToJsonDocumentChange = _init_l_Lean_Lsp_instToJsonDocumentChange();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentChange);
l_Lean_Lsp_instFromJsonDocumentChange___lam__0___closed__0 = _init_l_Lean_Lsp_instFromJsonDocumentChange___lam__0___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentChange___lam__0___closed__0);
l_Lean_Lsp_instFromJsonDocumentChange = _init_l_Lean_Lsp_instFromJsonDocumentChange();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentChange);
l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__0);
l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__1);
l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__2 = _init_l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceEdit_toJson___closed__2);
l_Lean_Lsp_instToJsonWorkspaceEdit___closed__0 = _init_l_Lean_Lsp_instToJsonWorkspaceEdit___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceEdit___closed__0);
l_Lean_Lsp_instToJsonWorkspaceEdit = _init_l_Lean_Lsp_instToJsonWorkspaceEdit();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceEdit);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__0_spec__0___closed__0);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonWorkspaceEdit_fromJson_spec__4_spec__4___closed__0);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__0);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__1);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__2);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__3);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__4);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__5);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__6);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__7);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__8);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__9);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__10);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__11);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__12);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__13);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__14);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__15);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__16 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__16();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__16);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__17 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__17();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__17);
l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__18 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__18();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit_fromJson___closed__18);
l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__0 = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit___closed__0);
l_Lean_Lsp_instFromJsonWorkspaceEdit = _init_l_Lean_Lsp_instFromJsonWorkspaceEdit();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceEdit);
l_Lean_Lsp_WorkspaceEdit_instEmptyCollection___closed__0 = _init_l_Lean_Lsp_WorkspaceEdit_instEmptyCollection___closed__0();
lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instEmptyCollection___closed__0);
l_Lean_Lsp_WorkspaceEdit_instEmptyCollection = _init_l_Lean_Lsp_WorkspaceEdit_instEmptyCollection();
lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instEmptyCollection);
l_Lean_Lsp_WorkspaceEdit_instAppend___closed__0 = _init_l_Lean_Lsp_WorkspaceEdit_instAppend___closed__0();
lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instAppend___closed__0);
l_Lean_Lsp_WorkspaceEdit_instAppend = _init_l_Lean_Lsp_WorkspaceEdit_instAppend();
lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_instAppend);
l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit___closed__0 = _init_l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit___closed__0();
lean_mark_persistent(l_Lean_Lsp_WorkspaceEdit_ofTextDocumentEdit___closed__0);
l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonApplyWorkspaceEditParams_toJson___closed__0);
l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__0 = _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonApplyWorkspaceEditParams___closed__0);
l_Lean_Lsp_instToJsonApplyWorkspaceEditParams = _init_l_Lean_Lsp_instToJsonApplyWorkspaceEditParams();
lean_mark_persistent(l_Lean_Lsp_instToJsonApplyWorkspaceEditParams);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__0);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__1);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__2);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__3);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__4);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__5);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__6);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__7);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__8);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__9);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__10);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__11);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams_fromJson___closed__12);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__0 = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams___closed__0);
l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams = _init_l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams();
lean_mark_persistent(l_Lean_Lsp_instFromJsonApplyWorkspaceEditParams);
l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__0);
l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentItem_toJson___closed__1);
l_Lean_Lsp_instToJsonTextDocumentItem___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentItem___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentItem___closed__0);
l_Lean_Lsp_instToJsonTextDocumentItem = _init_l_Lean_Lsp_instToJsonTextDocumentItem();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentItem);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__1);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__2);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__3);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__4);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__5);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__6);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__7);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__8);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__9);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__10);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__11);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__12);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__13);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__14);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__15);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__16 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__16();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__16);
l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__17 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__17();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem_fromJson___closed__17);
l_Lean_Lsp_instFromJsonTextDocumentItem___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentItem___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentItem = _init_l_Lean_Lsp_instFromJsonTextDocumentItem();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentItem);
l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentPositionParams_toJson___closed__0);
l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentPositionParams___closed__0);
l_Lean_Lsp_instToJsonTextDocumentPositionParams = _init_l_Lean_Lsp_instToJsonTextDocumentPositionParams();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentPositionParams);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__1);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__2);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__3);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__4);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__5);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__6);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__7);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__8);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams_fromJson___closed__9);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentPositionParams = _init_l_Lean_Lsp_instFromJsonTextDocumentPositionParams();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentPositionParams);
l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0___closed__0 = _init_l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToStringTextDocumentPositionParams___lam__0___closed__0);
l_Lean_Lsp_instToStringTextDocumentPositionParams = _init_l_Lean_Lsp_instToStringTextDocumentPositionParams();
lean_mark_persistent(l_Lean_Lsp_instToStringTextDocumentPositionParams);
l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__0);
l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__1);
l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__2 = _init_l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter_toJson___closed__2);
l_Lean_Lsp_instToJsonDocumentFilter___closed__0 = _init_l_Lean_Lsp_instToJsonDocumentFilter___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter___closed__0);
l_Lean_Lsp_instToJsonDocumentFilter = _init_l_Lean_Lsp_instToJsonDocumentFilter();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentFilter);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__0);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__1);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__2);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__3);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__4);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__5);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__6);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__7);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__8);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__9);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__10 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__10();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__10);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__11 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__11();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__11);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__12 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__12();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__12);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__13 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__13();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__13);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__14 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__14();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__14);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__15 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__15();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__15);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__16 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__16();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__16);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__17 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__17();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__17);
l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__18 = _init_l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__18();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter_fromJson___closed__18);
l_Lean_Lsp_instFromJsonDocumentFilter___closed__0 = _init_l_Lean_Lsp_instFromJsonDocumentFilter___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter___closed__0);
l_Lean_Lsp_instFromJsonDocumentFilter = _init_l_Lean_Lsp_instFromJsonDocumentFilter();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentFilter);
l_Lean_Lsp_instFromJsonDocumentSelector___closed__0 = _init_l_Lean_Lsp_instFromJsonDocumentSelector___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentSelector___closed__0);
l_Lean_Lsp_instFromJsonDocumentSelector = _init_l_Lean_Lsp_instFromJsonDocumentSelector();
lean_mark_persistent(l_Lean_Lsp_instFromJsonDocumentSelector);
l_Lean_Lsp_instToJsonDocumentSelector___closed__0 = _init_l_Lean_Lsp_instToJsonDocumentSelector___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentSelector___closed__0);
l_Lean_Lsp_instToJsonDocumentSelector = _init_l_Lean_Lsp_instToJsonDocumentSelector();
lean_mark_persistent(l_Lean_Lsp_instToJsonDocumentSelector);
l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonStaticRegistrationOptions_toJson___closed__0);
l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__0 = _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonStaticRegistrationOptions___closed__0);
l_Lean_Lsp_instToJsonStaticRegistrationOptions = _init_l_Lean_Lsp_instToJsonStaticRegistrationOptions();
lean_mark_persistent(l_Lean_Lsp_instToJsonStaticRegistrationOptions);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__0);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__1);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__2);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__3);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__4);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__5);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__6);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__7);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions_fromJson___closed__8);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__0 = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions___closed__0);
l_Lean_Lsp_instFromJsonStaticRegistrationOptions = _init_l_Lean_Lsp_instFromJsonStaticRegistrationOptions();
lean_mark_persistent(l_Lean_Lsp_instFromJsonStaticRegistrationOptions);
l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions_toJson___closed__0);
l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__0 = _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions___closed__0);
l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions = _init_l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions();
lean_mark_persistent(l_Lean_Lsp_instToJsonTextDocumentRegistrationOptions);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson_spec__0_spec__0___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__1);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__2);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__3);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__4);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__5);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__6);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__7);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions_fromJson___closed__8);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__0 = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions___closed__0);
l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions = _init_l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions();
lean_mark_persistent(l_Lean_Lsp_instFromJsonTextDocumentRegistrationOptions);
l_Lean_Lsp_instHashableMarkupKind___closed__0 = _init_l_Lean_Lsp_instHashableMarkupKind___closed__0();
lean_mark_persistent(l_Lean_Lsp_instHashableMarkupKind___closed__0);
l_Lean_Lsp_instHashableMarkupKind = _init_l_Lean_Lsp_instHashableMarkupKind();
lean_mark_persistent(l_Lean_Lsp_instHashableMarkupKind);
l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__0 = _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__0);
l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__1 = _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__1);
l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__2 = _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__2);
l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__3 = _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__3);
l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__4 = _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__4);
l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__5 = _init_l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind___lam__0___closed__5);
l_Lean_Lsp_instFromJsonMarkupKind = _init_l_Lean_Lsp_instFromJsonMarkupKind();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupKind);
l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__0 = _init_l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__0);
l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__1 = _init_l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupKind___lam__0___closed__1);
l_Lean_Lsp_instToJsonMarkupKind = _init_l_Lean_Lsp_instToJsonMarkupKind();
lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupKind);
l_Lean_Lsp_instToJsonMarkupContent___closed__0 = _init_l_Lean_Lsp_instToJsonMarkupContent___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupContent___closed__0);
l_Lean_Lsp_instToJsonMarkupContent = _init_l_Lean_Lsp_instToJsonMarkupContent();
lean_mark_persistent(l_Lean_Lsp_instToJsonMarkupContent);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__0);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__1);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__2);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__3);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__4);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__5);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__6);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__7);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__8);
l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__9 = _init_l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__9();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent_fromJson___closed__9);
l_Lean_Lsp_instFromJsonMarkupContent___closed__0 = _init_l_Lean_Lsp_instFromJsonMarkupContent___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent___closed__0);
l_Lean_Lsp_instFromJsonMarkupContent = _init_l_Lean_Lsp_instFromJsonMarkupContent();
lean_mark_persistent(l_Lean_Lsp_instFromJsonMarkupContent);
l_Lean_Lsp_instHashableMarkupContent___closed__0 = _init_l_Lean_Lsp_instHashableMarkupContent___closed__0();
lean_mark_persistent(l_Lean_Lsp_instHashableMarkupContent___closed__0);
l_Lean_Lsp_instHashableMarkupContent = _init_l_Lean_Lsp_instHashableMarkupContent();
lean_mark_persistent(l_Lean_Lsp_instHashableMarkupContent);
l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__0 = _init_l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__0);
l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__1 = _init_l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonProgressParams_toJson___redArg___closed__1);
l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__0);
l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__1 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__1);
l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__2 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport_toJson___closed__2);
l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__0 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport___closed__0);
l_Lean_Lsp_instToJsonWorkDoneProgressReport = _init_l_Lean_Lsp_instToJsonWorkDoneProgressReport();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressReport);
l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__0 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressBegin___closed__0);
l_Lean_Lsp_instToJsonWorkDoneProgressBegin = _init_l_Lean_Lsp_instToJsonWorkDoneProgressBegin();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressBegin);
l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__0 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressEnd___closed__0);
l_Lean_Lsp_instToJsonWorkDoneProgressEnd = _init_l_Lean_Lsp_instToJsonWorkDoneProgressEnd();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressEnd);
l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressParams_toJson___closed__0);
l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__0 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressParams___closed__0);
l_Lean_Lsp_instToJsonWorkDoneProgressParams = _init_l_Lean_Lsp_instToJsonWorkDoneProgressParams();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressParams);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__0);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__1);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__2);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__3);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__4);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__5);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__6);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__7);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams_fromJson___closed__8);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__0 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams___closed__0);
l_Lean_Lsp_instFromJsonWorkDoneProgressParams = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressParams();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressParams);
l_Lean_Lsp_instToJsonPartialResultParams_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonPartialResultParams_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonPartialResultParams_toJson___closed__0);
l_Lean_Lsp_instToJsonPartialResultParams___closed__0 = _init_l_Lean_Lsp_instToJsonPartialResultParams___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonPartialResultParams___closed__0);
l_Lean_Lsp_instToJsonPartialResultParams = _init_l_Lean_Lsp_instToJsonPartialResultParams();
lean_mark_persistent(l_Lean_Lsp_instToJsonPartialResultParams);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__0);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__1);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__2);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__3);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__4);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__5);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__6);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__7);
l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams_fromJson___closed__8);
l_Lean_Lsp_instFromJsonPartialResultParams___closed__0 = _init_l_Lean_Lsp_instFromJsonPartialResultParams___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams___closed__0);
l_Lean_Lsp_instFromJsonPartialResultParams = _init_l_Lean_Lsp_instFromJsonPartialResultParams();
lean_mark_persistent(l_Lean_Lsp_instFromJsonPartialResultParams);
l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___closed__0 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressOptions_toJson___closed__0);
l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__0 = _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressOptions___closed__0);
l_Lean_Lsp_instToJsonWorkDoneProgressOptions = _init_l_Lean_Lsp_instToJsonWorkDoneProgressOptions();
lean_mark_persistent(l_Lean_Lsp_instToJsonWorkDoneProgressOptions);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__0);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__1);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__2);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__3);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__4);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__5);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__6);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions_fromJson___closed__7);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__0 = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions___closed__0);
l_Lean_Lsp_instFromJsonWorkDoneProgressOptions = _init_l_Lean_Lsp_instFromJsonWorkDoneProgressOptions();
lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkDoneProgressOptions);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__0 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__0);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__1 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__1();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__1);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__2 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__2();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__2);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__3 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__3();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__3);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__4 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__4();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__4);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__5 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__5();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__5);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__6 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__6();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__6);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__7 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__7();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__7);
l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__8 = _init_l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__8();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport_fromJson___closed__8);
l_Lean_Lsp_instFromJsonResolveSupport___closed__0 = _init_l_Lean_Lsp_instFromJsonResolveSupport___closed__0();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport___closed__0);
l_Lean_Lsp_instFromJsonResolveSupport = _init_l_Lean_Lsp_instFromJsonResolveSupport();
lean_mark_persistent(l_Lean_Lsp_instFromJsonResolveSupport);
l_Lean_Lsp_instToJsonResolveSupport___closed__0 = _init_l_Lean_Lsp_instToJsonResolveSupport___closed__0();
lean_mark_persistent(l_Lean_Lsp_instToJsonResolveSupport___closed__0);
l_Lean_Lsp_instToJsonResolveSupport = _init_l_Lean_Lsp_instToJsonResolveSupport();
lean_mark_persistent(l_Lean_Lsp_instToJsonResolveSupport);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
